UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

74 lines 3.12 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getTeamsOutput = exports.getTeams = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about existing Teams in a Project or globally within an Azure DevOps organization * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getTeams({}); * export const projectId = example.then(example => example.teams.map(__item => __item.projectId)); * export const name = example.then(example => example.teams.map(__item => __item.name)); * export const allAdministrators = example.then(example => example.teams.map(__item => __item.administrators)); * export const administrators = example.then(example => example.teams.map(__item => __item.members)); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Teams - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/core/teams/get?view=azure-devops-rest-7.0) * * ## PAT Permissions Required * * - **vso.project**: Grants the ability to read projects and teams. */ function getTeams(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getTeams:getTeams", { "projectId": args.projectId, "top": args.top, }, opts); } exports.getTeams = getTeams; /** * Use this data source to access information about existing Teams in a Project or globally within an Azure DevOps organization * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getTeams({}); * export const projectId = example.then(example => example.teams.map(__item => __item.projectId)); * export const name = example.then(example => example.teams.map(__item => __item.name)); * export const allAdministrators = example.then(example => example.teams.map(__item => __item.administrators)); * export const administrators = example.then(example => example.teams.map(__item => __item.members)); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Teams - Get](https://docs.microsoft.com/en-us/rest/api/azure/devops/core/teams/get?view=azure-devops-rest-7.0) * * ## PAT Permissions Required * * - **vso.project**: Grants the ability to read projects and teams. */ function getTeamsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getTeams:getTeams", { "projectId": args.projectId, "top": args.top, }, opts); } exports.getTeamsOutput = getTeamsOutput; //# sourceMappingURL=getTeams.js.map