@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
68 lines • 2.23 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.getEndpointOutput = exports.getEndpoint = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the ID of an OpenStack endpoint.
*
* > **Note:** This usually requires admin privileges.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const endpoint1 = openstack.identity.getEndpoint({
* serviceName: "demo",
* });
* ```
*/
function getEndpoint(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:identity/getEndpoint:getEndpoint", {
"endpointRegion": args.endpointRegion,
"interface": args.interface,
"name": args.name,
"region": args.region,
"serviceId": args.serviceId,
"serviceName": args.serviceName,
"serviceType": args.serviceType,
}, opts);
}
exports.getEndpoint = getEndpoint;
/**
* Use this data source to get the ID of an OpenStack endpoint.
*
* > **Note:** This usually requires admin privileges.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const endpoint1 = openstack.identity.getEndpoint({
* serviceName: "demo",
* });
* ```
*/
function getEndpointOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:identity/getEndpoint:getEndpoint", {
"endpointRegion": args.endpointRegion,
"interface": args.interface,
"name": args.name,
"region": args.region,
"serviceId": args.serviceId,
"serviceName": args.serviceName,
"serviceType": args.serviceType,
}, opts);
}
exports.getEndpointOutput = getEndpointOutput;
//# sourceMappingURL=getEndpoint.js.map