UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

92 lines 3.53 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getGroupOutput = exports.getGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing Group 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", * }); * const exampleGetGroup = example.then(example => azuredevops.getGroup({ * projectId: example.id, * name: "Example Group", * })); * export const groupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.id); * export const groupDescriptor = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.descriptor); * const example_collection_group = azuredevops.getGroup({ * name: "Project Collection Administrators", * }); * export const collectionGroupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.id); * export const collectionGroupDescriptor = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.descriptor); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Groups - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/get?view=azure-devops-rest-7.0) * * ## PAT Permissions Required * * - **Graph**: Read * - **Work Items**: Read */ function getGroup(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getGroup:getGroup", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getGroup = getGroup; /** * Use this data source to access information about an existing Group 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", * }); * const exampleGetGroup = example.then(example => azuredevops.getGroup({ * projectId: example.id, * name: "Example Group", * })); * export const groupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.id); * export const groupDescriptor = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.descriptor); * const example_collection_group = azuredevops.getGroup({ * name: "Project Collection Administrators", * }); * export const collectionGroupId = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.id); * export const collectionGroupDescriptor = exampleGetGroup.then(exampleGetGroup => exampleGetGroup.descriptor); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Groups - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/get?view=azure-devops-rest-7.0) * * ## PAT Permissions Required * * - **Graph**: Read * - **Work Items**: Read */ function getGroupOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getGroup:getGroup", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getGroupOutput = getGroupOutput; //# sourceMappingURL=getGroup.js.map