@pulumi/azuredevops
Version:
A Pulumi package for creating and managing Azure DevOps.
58 lines • 2.44 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.getServiceendpointAzurecrOutput = exports.getServiceendpointAzurecr = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this data source to access information about an existing Azure Container Registry Service Endpoint.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getServiceendpointAzurecr({
* projectId: exampleAzuredevopsProject.id,
* serviceEndpointName: "Example Azure Container Registry",
* });
* export const serviceEndpointId = example.then(example => example.id);
* ```
*/
function getServiceendpointAzurecr(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("azuredevops:index/getServiceendpointAzurecr:getServiceendpointAzurecr", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceendpointAzurecr = getServiceendpointAzurecr;
/**
* Use this data source to access information about an existing Azure Container Registry Service Endpoint.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azuredevops from "@pulumi/azuredevops";
*
* const example = azuredevops.getServiceendpointAzurecr({
* projectId: exampleAzuredevopsProject.id,
* serviceEndpointName: "Example Azure Container Registry",
* });
* export const serviceEndpointId = example.then(example => example.id);
* ```
*/
function getServiceendpointAzurecrOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("azuredevops:index/getServiceendpointAzurecr:getServiceendpointAzurecr", {
"projectId": args.projectId,
"serviceEndpointId": args.serviceEndpointId,
"serviceEndpointName": args.serviceEndpointName,
}, opts);
}
exports.getServiceendpointAzurecrOutput = getServiceendpointAzurecrOutput;
//# sourceMappingURL=getServiceendpointAzurecr.js.map