AzureDevOps

Pulumi Official
Package maintained by Pulumi
v2.5.0 published on Monday, Jul 25, 2022 by Pulumi

getPools

Deprecated:

azuredevops.agent.getPools has been deprecated in favor of azuredevops.getPools

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

Example Usage

using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AzureDevOps.GetPools.InvokeAsync());
        this.AgentPoolName = 
        {
            example.Apply(example => example.AgentPools),
        }.Select(__item => __item?.Name).ToList();
        this.AutoProvision = 
        {
            example.Apply(example => example.AgentPools),
        }.Select(__item => __item?.AutoProvision).ToList();
        this.PoolType = 
        {
            example.Apply(example => example.AgentPools),
        }.Select(__item => __item?.PoolType).ToList();
    }

    [Output("agentPoolName")]
    public Output<string> AgentPoolName { get; set; }
    [Output("autoProvision")]
    public Output<string> AutoProvision { get; set; }
    [Output("poolType")]
    public Output<string> PoolType { get; set; }
}

Coming soon!

Coming soon!

import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.get_pools()
pulumi.export("agentPoolName", [__item.name for __item in [example.agent_pools]])
pulumi.export("autoProvision", [__item.auto_provision for __item in [example.agent_pools]])
pulumi.export("poolType", [__item.pool_type for __item in [example.agent_pools]])
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = azuredevops.getPools({});
export const agentPoolName = [example.then(example => example.agentPools)].map(__item => __item?.name);
export const autoProvision = [example.then(example => example.agentPools)].map(__item => __item?.autoProvision);
export const poolType = [example.then(example => example.agentPools)].map(__item => __item?.poolType);

Coming soon!

Using getPools

function getPools(opts?: InvokeOptions): Promise<GetPoolsResult>
def get_pools(opts: Optional[InvokeOptions] = None) -> GetPoolsResult
func GetPools(ctx *Context, opts ...InvokeOption) (*GetPoolsResult, error)

> Note: This function is named GetPools in the Go SDK.

public static class GetPools 
{
    public static Task<GetPoolsResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetPoolsResult> getPools(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azuredevops:Agent/getPools:getPools
  Arguments:
    # Arguments dictionary

getPools Result

The following output properties are available:

AgentPools List<Pulumi.AzureDevOps.Agent.Outputs.GetPoolsAgentPool>

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

Id string

The provider-assigned unique ID for this managed resource.

AgentPools []GetPoolsAgentPool

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

Id string

The provider-assigned unique ID for this managed resource.

agentPools List<GetPoolsPool>

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

id String

The provider-assigned unique ID for this managed resource.

agentPools GetPoolsAgentPool[]

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

id string

The provider-assigned unique ID for this managed resource.

agent_pools GetPoolsAgentPool]

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

id str

The provider-assigned unique ID for this managed resource.

agentPools List<Property Map>

A list of existing agent pools in your Azure DevOps Organization with the following details about every agent pool:

id String

The provider-assigned unique ID for this managed resource.

Supporting Types

GetPoolsAgentPool

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection.

Id int
Name string

The name of the agent pool

PoolType string

Specifies whether the agent pool type is Automation or Deployment.

AutoProvision bool

Specifies whether or not a queue should be automatically provisioned for each project collection.

Id int
Name string

The name of the agent pool

PoolType string

Specifies whether the agent pool type is Automation or Deployment.

autoProvision Boolean

Specifies whether or not a queue should be automatically provisioned for each project collection.

id Integer
name String

The name of the agent pool

poolType String

Specifies whether the agent pool type is Automation or Deployment.

autoProvision boolean

Specifies whether or not a queue should be automatically provisioned for each project collection.

id number
name string

The name of the agent pool

poolType string

Specifies whether the agent pool type is Automation or Deployment.

auto_provision bool

Specifies whether or not a queue should be automatically provisioned for each project collection.

id int
name str

The name of the agent pool

pool_type str

Specifies whether the agent pool type is Automation or Deployment.

autoProvision Boolean

Specifies whether or not a queue should be automatically provisioned for each project collection.

id Number
name String

The name of the agent pool

poolType String

Specifies whether the agent pool type is Automation or Deployment.

Package Details

Repository
https://github.com/pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.