@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
85 lines (84 loc) • 2.92 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Use this data source to access information about existing Groups within Azure DevOps
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* // load all existing groups inside an organization
* const example_all_groups = azuredevops.getGroups({});
* // load all existing groups inside a specific project
* const example_project_groups = example.then(example => azuredevops.getGroups({
* projectId: example.id,
* }));
* ```
*
* ## Relevant Links
*
* - [Azure DevOps Service REST API 7.0 - Groups - List](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/list?view=azure-devops-rest-7.0)
*/
export declare function getGroups(args?: GetGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupsResult>;
/**
* A collection of arguments for invoking getGroups.
*/
export interface GetGroupsArgs {
/**
* The ID of the Project. If no project ID is specified all groups of an organization will be returned
*/
projectId?: string;
}
/**
* A collection of values returned by getGroups.
*/
export interface GetGroupsResult {
/**
* A `groups` blocks as documented below. A set of existing groups in your Azure DevOps Organization or project with details about every single group which includes:
*/
readonly groups: outputs.GetGroupsGroup[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly projectId?: string;
}
/**
* Use this data source to access information about existing Groups within Azure DevOps
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* // load all existing groups inside an organization
* const example_all_groups = azuredevops.getGroups({});
* // load all existing groups inside a specific project
* const example_project_groups = example.then(example => azuredevops.getGroups({
* projectId: example.id,
* }));
* ```
*
* ## Relevant Links
*
* - [Azure DevOps Service REST API 7.0 - Groups - List](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/list?view=azure-devops-rest-7.0)
*/
export declare function getGroupsOutput(args?: GetGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGroupsResult>;
/**
* A collection of arguments for invoking getGroups.
*/
export interface GetGroupsOutputArgs {
/**
* The ID of the Project. If no project ID is specified all groups of an organization will be returned
*/
projectId?: pulumi.Input<string>;
}