@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
108 lines • 4.35 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.getServiceendpointBitbucketOutput = exports.getServiceendpointBitbucket = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to access information about an existing Bitbucket service Endpoint.
*
* ## Example Usage
*
* ### By Service Endpoint ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* const exampleGetServiceendpointBitbucket = example.then(example => azuredevops.getServiceendpointBitbucket({
* projectId: example.id,
* serviceEndpointId: "00000000-0000-0000-0000-000000000000",
* }));
* export const serviceEndpointName = exampleGetServiceendpointBitbucket.then(exampleGetServiceendpointBitbucket => exampleGetServiceendpointBitbucket.serviceEndpointName);
* ```
*
* ### By Service Endpoint Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* const exampleGetServiceendpointBitbucket = example.then(example => azuredevops.getServiceendpointBitbucket({
* projectId: example.id,
* serviceEndpointName: "Example",
* }));
* export const serviceEndpointId = exampleGetServiceendpointBitbucket.then(exampleGetServiceendpointBitbucket => exampleGetServiceendpointBitbucket.id);
* ```
*
* ## PAT Permissions Required
*
* - **vso.serviceendpoint**: Grants the ability to read service endpoints.
*/
function getServiceendpointBitbucket(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azuredevops:index/getServiceendpointBitbucket:getServiceendpointBitbucket", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceendpointBitbucket = getServiceendpointBitbucket;
/**
* Use this data source to access information about an existing Bitbucket service Endpoint.
*
* ## Example Usage
*
* ### By Service Endpoint ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* const exampleGetServiceendpointBitbucket = example.then(example => azuredevops.getServiceendpointBitbucket({
* projectId: example.id,
* serviceEndpointId: "00000000-0000-0000-0000-000000000000",
* }));
* export const serviceEndpointName = exampleGetServiceendpointBitbucket.then(exampleGetServiceendpointBitbucket => exampleGetServiceendpointBitbucket.serviceEndpointName);
* ```
*
* ### By Service Endpoint Name
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getProject({
* name: "Example Project",
* });
* const exampleGetServiceendpointBitbucket = example.then(example => azuredevops.getServiceendpointBitbucket({
* projectId: example.id,
* serviceEndpointName: "Example",
* }));
* export const serviceEndpointId = exampleGetServiceendpointBitbucket.then(exampleGetServiceendpointBitbucket => exampleGetServiceendpointBitbucket.id);
* ```
*
* ## PAT Permissions Required
*
* - **vso.serviceendpoint**: Grants the ability to read service endpoints.
*/
function getServiceendpointBitbucketOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azuredevops:index/getServiceendpointBitbucket:getServiceendpointBitbucket", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceendpointBitbucketOutput = getServiceendpointBitbucketOutput;
//# sourceMappingURL=getServiceendpointBitbucket.js.map