UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

52 lines 1.9 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.getServicePrincipalOutput = exports.getServicePrincipal = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing Service Principal. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getServicePrincipal({ * displayName: "existing", * }); * export const id = example.then(example => example.id); * ``` */ function getServicePrincipal(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getServicePrincipal:getServicePrincipal", { "displayName": args.displayName, }, opts); } exports.getServicePrincipal = getServicePrincipal; /** * Use this data source to access information about an existing Service Principal. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getServicePrincipal({ * displayName: "existing", * }); * export const id = example.then(example => example.id); * ``` */ function getServicePrincipalOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getServicePrincipal:getServicePrincipal", { "displayName": args.displayName, }, opts); } exports.getServicePrincipalOutput = getServicePrincipalOutput; //# sourceMappingURL=getServicePrincipal.js.map