UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

58 lines 2.31 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getServiceendpointNpmOutput = exports.getServiceendpointNpm = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about an existing NPM Service Endpoint. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getServiceendpointNpm({ * projectId: exampleAzuredevopsProject.id, * serviceEndpointName: "Example npm", * }); * export const serviceEndpointId = example.then(example => example.id); * ``` */ function getServiceendpointNpm(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getServiceendpointNpm:getServiceendpointNpm", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceendpointNpm = getServiceendpointNpm; /** * Use this data source to access information about an existing NPM Service Endpoint. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getServiceendpointNpm({ * projectId: exampleAzuredevopsProject.id, * serviceEndpointName: "Example npm", * }); * export const serviceEndpointId = example.then(example => example.id); * ``` */ function getServiceendpointNpmOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getServiceendpointNpm:getServiceendpointNpm", { "projectId": args.projectId, "serviceEndpointId": args.serviceEndpointId, "serviceEndpointName": args.serviceEndpointName, }, opts); } exports.getServiceendpointNpmOutput = getServiceendpointNpmOutput; //# sourceMappingURL=getServiceendpointNpm.js.map