azuredevops.getPools
Explore with Pulumi AI
Use this data source to access information about existing Agent Pools within Azure DevOps.
Relevant Links
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetPools.Invoke();
return new Dictionary<string, object?>
{
["agentPoolName"] = new[]
{
example.Apply(getPoolsResult => getPoolsResult.AgentPools),
}.Select(__item => __item?.Name).ToList(),
["autoProvision"] = new[]
{
example.Apply(getPoolsResult => getPoolsResult.AgentPools),
}.Select(__item => __item?.AutoProvision).ToList(),
["autoUpdate"] = new[]
{
example.Apply(getPoolsResult => getPoolsResult.AgentPools),
}.Select(__item => __item?.AutoUpdate).ToList(),
["poolType"] = new[]
{
example.Apply(getPoolsResult => getPoolsResult.AgentPools),
}.Select(__item => __item?.PoolType).ToList(),
};
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzuredevopsFunctions.getPools();
ctx.export("agentPoolName", example.applyValue(getPoolsResult -> getPoolsResult.agentPools()).stream().map(element -> element.name()).collect(toList()));
ctx.export("autoProvision", example.applyValue(getPoolsResult -> getPoolsResult.agentPools()).stream().map(element -> element.autoProvision()).collect(toList()));
ctx.export("autoUpdate", example.applyValue(getPoolsResult -> getPoolsResult.agentPools()).stream().map(element -> element.autoUpdate()).collect(toList()));
ctx.export("poolType", example.applyValue(getPoolsResult -> getPoolsResult.agentPools()).stream().map(element -> element.poolType()).collect(toList()));
}
}
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("autoUpdate", [__item.auto_update 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 autoUpdate = [example.then(example => example.agentPools)].map(__item => __item?.autoUpdate);
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:index/getPools:getPools
arguments:
# arguments dictionary
getPools Result
The following output properties are available:
- Agent
Pools List<Pulumi.Azure Dev Ops. Outputs. Get Pools Agent Pool> 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 []GetPools Agent Pool 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 List<GetPools Agent Pool> 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 GetPools Agent Pool[] 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 Sequence[GetPools Agent Pool] 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.
- agent
Pools 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
- Auto
Provision bool Specifies whether or not a queue should be automatically provisioned for each project collection.
- Auto
Update bool Specifies whether or not agents within the pool should be automatically updated.
- Id int
- Name string
The name of the agent pool
- Pool
Type 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.
- Auto
Update bool Specifies whether or not agents within the pool should be automatically updated.
- Id int
- Name string
The name of the agent pool
- Pool
Type string Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision Boolean Specifies whether or not a queue should be automatically provisioned for each project collection.
- auto
Update Boolean Specifies whether or not agents within the pool should be automatically updated.
- id Integer
- name String
The name of the agent pool
- pool
Type String Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision boolean Specifies whether or not a queue should be automatically provisioned for each project collection.
- auto
Update boolean Specifies whether or not agents within the pool should be automatically updated.
- id number
- name string
The name of the agent pool
- pool
Type 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.
- auto_
update bool Specifies whether or not agents within the pool should be automatically updated.
- id int
- name str
The name of the agent pool
- pool_
type str Specifies whether the agent pool type is Automation or Deployment.
- auto
Provision Boolean Specifies whether or not a queue should be automatically provisioned for each project collection.
- auto
Update Boolean Specifies whether or not agents within the pool should be automatically updated.
- id Number
- name String
The name of the agent pool
- pool
Type String Specifies whether the agent pool type is Automation or Deployment.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azuredevops
Terraform Provider.