UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

62 lines 1.92 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.getServiceOutput = exports.getService = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get the ID of an OpenStack service. * * > **Note:** This usually requires admin privileges. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const service1 = openstack.identity.getService({ * name: "keystone", * }); * ``` */ function getService(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("openstack:identity/getService:getService", { "enabled": args.enabled, "name": args.name, "region": args.region, "type": args.type, }, opts); } exports.getService = getService; /** * Use this data source to get the ID of an OpenStack service. * * > **Note:** This usually requires admin privileges. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const service1 = openstack.identity.getService({ * name: "keystone", * }); * ``` */ function getServiceOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("openstack:identity/getService:getService", { "enabled": args.enabled, "name": args.name, "region": args.region, "type": args.type, }, opts); } exports.getServiceOutput = getServiceOutput; //# sourceMappingURL=getService.js.map