UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

100 lines 4.11 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.getServiceendpointDockerregistryOutput = exports.getServiceendpointDockerregistry = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing Docker Registry 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 exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({ * projectId: example.id, * serviceEndpointId: "00000000-0000-0000-0000-000000000000", * })); * export const serviceEndpointName = exampleGetServiceendpointDockerregistry.then(exampleGetServiceendpointDockerregistry => exampleGetServiceendpointDockerregistry.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 exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({ * projectId: example.id, * serviceEndpointName: "Example-Service-Endpoint", * })); * export const serviceEndpointId = serviceendpoint.id; * ``` */ function getServiceendpointDockerregistry(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getServiceendpointDockerregistry:getServiceendpointDockerregistry", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceendpointDockerregistry = getServiceendpointDockerregistry; /** * Use this data source to access information about an existing Docker Registry 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 exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({ * projectId: example.id, * serviceEndpointId: "00000000-0000-0000-0000-000000000000", * })); * export const serviceEndpointName = exampleGetServiceendpointDockerregistry.then(exampleGetServiceendpointDockerregistry => exampleGetServiceendpointDockerregistry.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 exampleGetServiceendpointDockerregistry = example.then(example => azuredevops.getServiceendpointDockerregistry({ * projectId: example.id, * serviceEndpointName: "Example-Service-Endpoint", * })); * export const serviceEndpointId = serviceendpoint.id; * ``` */ function getServiceendpointDockerregistryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getServiceendpointDockerregistry:getServiceendpointDockerregistry", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceendpointDockerregistryOutput = getServiceendpointDockerregistryOutput; //# sourceMappingURL=getServiceendpointDockerregistry.js.map