GetPool

Use this data source to access information about an existing Agent Pool within Azure DevOps.

Example Usage

using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var pool = Output.Create(AzureDevOps.Agent.GetPool.InvokeAsync(new AzureDevOps.Agent.GetPoolArgs
        {
            Name = "Sample Agent Pool",
        }));
        this.Name = pool.Apply(pool => pool.Name);
        this.PoolType = pool.Apply(pool => pool.PoolType);
        this.AutoProvision = pool.Apply(pool => pool.AutoProvision);
    }

    [Output("name")]
    public Output<string> Name { get; set; }
    [Output("poolType")]
    public Output<string> PoolType { get; set; }
    [Output("autoProvision")]
    public Output<string> AutoProvision { get; set; }
}
package main

import (
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        pool, err := Agent.LookupPool(ctx, &Agent.LookupPoolArgs{
            Name: "Sample Agent Pool",
        }, nil)
        if err != nil {
            return err
        }
        ctx.Export("name", pool.Name)
        ctx.Export("poolType", pool.PoolType)
        ctx.Export("autoProvision", pool.AutoProvision)
        return nil
    })
}
import pulumi
import pulumi_azuredevops as azuredevops

pool = azuredevops.Agent.get_pool(name="Sample Agent Pool")
pulumi.export("name", pool.name)
pulumi.export("poolType", pool.pool_type)
pulumi.export("autoProvision", pool.auto_provision)
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const pool = azuredevops.Agent.getPool({
    name: "Sample Agent Pool",
});
export const name = pool.then(pool => pool.name);
export const poolType = pool.then(pool => pool.poolType);
export const autoProvision = pool.then(pool => pool.autoProvision);

Using GetPool

function getPool(args: GetPoolArgs, opts?: InvokeOptions): Promise<GetPoolResult>
function  get_pool(name=None, opts=None)
func LookupPool(ctx *Context, args *LookupPoolArgs, opts ...InvokeOption) (*LookupPoolResult, error)

Note: This function is named LookupPool in the Go SDK.

public static class GetPool {
    public static Task<GetPoolResult> InvokeAsync(GetPoolArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string
Name string
name string
name str

GetPool Result

The following output properties are available:

AutoProvision bool
Id string

The provider-assigned unique ID for this managed resource.

Name string
PoolType string
AutoProvision bool
Id string

The provider-assigned unique ID for this managed resource.

Name string
PoolType string
autoProvision boolean
id string

The provider-assigned unique ID for this managed resource.

name string
poolType string
auto_provision bool
id str

The provider-assigned unique ID for this managed resource.

name str
pool_type str

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.