@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
88 lines • 3.56 kB
JavaScript
;
// *** 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.getAreaOutput = exports.getArea = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to access information about an existing Area (Component) 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 = exampleProject.id.apply(id => azuredevops.getAreaOutput({
* projectId: id,
* path: "/",
* fetchChildren: false,
* }));
* ```
*
* ## Relevant Links
*
* - [Azure DevOps Service REST API 7.0 - Classification Nodes - Get Classification Nodes](https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/classification-nodes/create-or-update?view=azure-devops-rest-7.0)
*
* ## PAT Permissions Required
*
* - **Project & Team**: vso.work - Grants the ability to read work items, queries, boards, area and iterations paths, and other work item tracking related metadata. Also grants the ability to execute queries, search work items and to receive notifications about work item events via service hooks.
*/
function getArea(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azuredevops:index/getArea:getArea", {
"fetchChildren": args.fetchChildren,
"path": args.path,
"projectId": args.projectId,
}, opts);
}
exports.getArea = getArea;
/**
* Use this data source to access information about an existing Area (Component) 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 = exampleProject.id.apply(id => azuredevops.getAreaOutput({
* projectId: id,
* path: "/",
* fetchChildren: false,
* }));
* ```
*
* ## Relevant Links
*
* - [Azure DevOps Service REST API 7.0 - Classification Nodes - Get Classification Nodes](https://docs.microsoft.com/en-us/rest/api/azure/devops/wit/classification-nodes/create-or-update?view=azure-devops-rest-7.0)
*
* ## PAT Permissions Required
*
* - **Project & Team**: vso.work - Grants the ability to read work items, queries, boards, area and iterations paths, and other work item tracking related metadata. Also grants the ability to execute queries, search work items and to receive notifications about work item events via service hooks.
*/
function getAreaOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azuredevops:index/getArea:getArea", {
"fetchChildren": args.fetchChildren,
"path": args.path,
"projectId": args.projectId,
}, opts);
}
exports.getAreaOutput = getAreaOutput;
//# sourceMappingURL=getArea.js.map