@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
100 lines • 3.78 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.getServiceEndpointGithubOutput = exports.getServiceEndpointGithub = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to access information about an existing GitHub 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.getServiceEndpointGithub({
* 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.getServiceEndpointGithub({
* projectId: sample.id,
* serviceEndpointName: "Example-Service-Endpoint",
* }));
* export const serviceEndpointId = serviceendpoint.then(serviceendpoint => serviceendpoint.id);
* ```
*/
function getServiceEndpointGithub(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azuredevops:index/getServiceEndpointGithub:getServiceEndpointGithub", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceEndpointGithub = getServiceEndpointGithub;
/**
* Use this data source to access information about an existing GitHub 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.getServiceEndpointGithub({
* 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.getServiceEndpointGithub({
* projectId: sample.id,
* serviceEndpointName: "Example-Service-Endpoint",
* }));
* export const serviceEndpointId = serviceendpoint.then(serviceendpoint => serviceendpoint.id);
* ```
*/
function getServiceEndpointGithubOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azuredevops:index/getServiceEndpointGithub:getServiceEndpointGithub", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceEndpointGithubOutput = getServiceEndpointGithubOutput;
//# sourceMappingURL=getServiceEndpointGithub.js.map