UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

100 lines 3.79 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.getServiceEndpointAzureRMOutput = exports.getServiceEndpointAzureRM = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing AzureRM service Endpoint. * * ## Example Usage * * ### By Service Endpoint ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const sample = azuredevops.getProject({ * name: "Sample Project", * }); * const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({ * projectId: sample.id, * serviceEndpointId: "00000000-0000-0000-0000-000000000000", * })); * export const serviceEndpointName = serviceendpoint.then(serviceendpoint => serviceendpoint.serviceEndpointName); * ``` * * ### By Service Endpoint Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const sample = azuredevops.getProject({ * name: "Sample Project", * }); * const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({ * projectId: sample.id, * serviceEndpointName: "Example-Service-Endpoint", * })); * export const serviceEndpointId = serviceendpoint.then(serviceendpoint => serviceendpoint.id); * ``` */ function getServiceEndpointAzureRM(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getServiceEndpointAzureRM:getServiceEndpointAzureRM", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceEndpointAzureRM = getServiceEndpointAzureRM; /** * Use this data source to access information about an existing AzureRM service Endpoint. * * ## Example Usage * * ### By Service Endpoint ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const sample = azuredevops.getProject({ * name: "Sample Project", * }); * const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({ * projectId: sample.id, * serviceEndpointId: "00000000-0000-0000-0000-000000000000", * })); * export const serviceEndpointName = serviceendpoint.then(serviceendpoint => serviceendpoint.serviceEndpointName); * ``` * * ### By Service Endpoint Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const sample = azuredevops.getProject({ * name: "Sample Project", * }); * const serviceendpoint = sample.then(sample => azuredevops.getServiceEndpointAzureRM({ * projectId: sample.id, * serviceEndpointName: "Example-Service-Endpoint", * })); * export const serviceEndpointId = serviceendpoint.then(serviceendpoint => serviceendpoint.id); * ``` */ function getServiceEndpointAzureRMOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getServiceEndpointAzureRM:getServiceEndpointAzureRM", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceEndpointAzureRMOutput = getServiceEndpointAzureRMOutput; //# sourceMappingURL=getServiceEndpointAzureRM.js.map