GetPools
Use this data source to access information about existing Agent Pools within Azure DevOps.
Relevant Links
Example Usage
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
class MyStack : Stack
{
public MyStack()
{
var pools = Output.Create(AzureDevOps.Agent.GetPools.InvokeAsync());
this.AgentPoolName = pools.Apply(pools => pools.AgentPools.Select(__item => __item.Name).ToList());
this.AutoProvision = pools.Apply(pools => pools.AgentPools.Select(__item => __item.AutoProvision).ToList());
this.PoolType = pools.Apply(pools => pools.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!
import pulumi
import pulumi_azuredevops as azuredevops
pools = azuredevops.Agent.get_pools()
pulumi.export("agentPoolName", [__item["name"] for __item in pools.agent_pools])
pulumi.export("autoProvision", [__item["auto_provision"] for __item in pools.agent_pools])
pulumi.export("poolType", [__item["pool_type"] for __item in pools.agent_pools])import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const pools = azuredevops.Agent.getPools({});
export const agentPoolName = pools.then(pools => pools.agentPools.map(__item => __item.name));
export const autoProvision = pools.then(pools => pools.agentPools.map(__item => __item.autoProvision));
export const poolType = pools.then(pools => pools.agentPools.map(__item => __item.poolType));Using GetPools
function getPools(opts?: InvokeOptions): Promise<GetPoolsResult>function get_pools(opts=None)func GetPools(ctx *Context, opts ...InvokeOption) (*GetPoolsResult, error)public static class GetPools {
public static Task<GetPoolsResult> InvokeAsync(InvokeOptions? opts = null)
}GetPools Result
The following output properties are available:
- Agent
Pools List<Pulumi.Azure Dev Ops. Agent. Outputs. Get Pools Agent Pool> - Id string
The provider-assigned unique ID for this managed resource.
- Agent
Pools []GetPools Agent Pool - Id string
The provider-assigned unique ID for this managed resource.
- agent
Pools GetPools Agent Pool[] - id string
The provider-assigned unique ID for this managed resource.
- agent_
pools List[GetPools Agent Pool] - id str
The provider-assigned unique ID for this managed resource.
Supporting Types
GetPoolsAgentPool
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.