UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

86 lines 2.88 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.getTeamOutput = exports.getTeam = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing Team in a Project within Azure DevOps. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const exampleProject = new azuredevops.Project("example", { * name: "Example Project", * workItemTemplate: "Agile", * versionControl: "Git", * visibility: "private", * description: "Managed by Pulumi", * }); * const example = azuredevops.getTeamOutput({ * projectId: exampleProject.id, * name: "Example Project Team", * }); * ``` * * ## 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 getTeam(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getTeam:getTeam", { "name": args.name, "projectId": args.projectId, "top": args.top, }, opts); } exports.getTeam = getTeam; /** * Use this data source to access information about an existing Team in a Project within Azure DevOps. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const exampleProject = new azuredevops.Project("example", { * name: "Example Project", * workItemTemplate: "Agile", * versionControl: "Git", * visibility: "private", * description: "Managed by Pulumi", * }); * const example = azuredevops.getTeamOutput({ * projectId: exampleProject.id, * name: "Example Project Team", * }); * ``` * * ## 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 getTeamOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getTeam:getTeam", { "name": args.name, "projectId": args.projectId, "top": args.top, }, opts); } exports.getTeamOutput = getTeamOutput; //# sourceMappingURL=getTeam.js.map