UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

72 lines 2.65 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.getGroupsOutput = exports.getGroups = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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) */ function getGroups(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getGroups:getGroups", { "projectId": args.projectId, }, opts); } exports.getGroups = getGroups; /** * 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) */ function getGroupsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getGroups:getGroups", { "projectId": args.projectId, }, opts); } exports.getGroupsOutput = getGroupsOutput; //# sourceMappingURL=getGroups.js.map