UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

74 lines (73 loc) 2.23 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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); * ``` */ export declare function getServicePrincipal(args: GetServicePrincipalArgs, opts?: pulumi.InvokeOptions): Promise<GetServicePrincipalResult>; /** * A collection of arguments for invoking getServicePrincipal. */ export interface GetServicePrincipalArgs { /** * The Display Name of the Service Principal. Changing this forces a new Service Principal to be created. */ displayName: string; } /** * A collection of values returned by getServicePrincipal. */ export interface GetServicePrincipalResult { /** * The descriptor of the Service Principal. */ readonly descriptor: string; readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The origin of the Service Principal. */ readonly origin: string; /** * The origin ID of the Service Principal.. */ readonly originId: string; } /** * 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); * ``` */ export declare function getServicePrincipalOutput(args: GetServicePrincipalOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetServicePrincipalResult>; /** * A collection of arguments for invoking getServicePrincipal. */ export interface GetServicePrincipalOutputArgs { /** * The Display Name of the Service Principal. Changing this forces a new Service Principal to be created. */ displayName: pulumi.Input<string>; }