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