@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
54 lines • 1.73 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.getServergroupV2Output = exports.getServergroupV2 = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get information about server groups
* by name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const test = openstack.compute.getServergroupV2({
* name: "test",
* });
* ```
*/
function getServergroupV2(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("openstack:compute/getServergroupV2:getServergroupV2", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getServergroupV2 = getServergroupV2;
/**
* Use this data source to get information about server groups
* by name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const test = openstack.compute.getServergroupV2({
* name: "test",
* });
* ```
*/
function getServergroupV2Output(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("openstack:compute/getServergroupV2:getServergroupV2", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getServergroupV2Output = getServergroupV2Output;
//# sourceMappingURL=getServergroupV2.js.map