@pulumi/vsphere
Version:
A Pulumi package for creating vsphere resources
78 lines • 2.74 kB
JavaScript
;
// *** 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.getVmfsDisksOutput = exports.getVmfsDisks = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
* devices available on an ESXi host. This data source can be combined with the
* `vsphere.VmfsDatastore` resource to create VMFS
* datastores based off a set of discovered disks.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const datacenter = vsphere.getDatacenter({
* name: "dc-01",
* });
* const host = datacenter.then(datacenter => vsphere.getHost({
* name: "esxi-01.example.com",
* datacenterId: datacenter.id,
* }));
* const vmfsDisks = host.then(host => vsphere.getVmfsDisks({
* hostSystemId: host.id,
* rescan: true,
* filter: "mpx.vmhba1:C0:T[12]:L0",
* }));
* ```
*/
function getVmfsDisks(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("vsphere:index/getVmfsDisks:getVmfsDisks", {
"filter": args.filter,
"hostSystemId": args.hostSystemId,
"rescan": args.rescan,
}, opts);
}
exports.getVmfsDisks = getVmfsDisks;
/**
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
* devices available on an ESXi host. This data source can be combined with the
* `vsphere.VmfsDatastore` resource to create VMFS
* datastores based off a set of discovered disks.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vsphere from "@pulumi/vsphere";
*
* const datacenter = vsphere.getDatacenter({
* name: "dc-01",
* });
* const host = datacenter.then(datacenter => vsphere.getHost({
* name: "esxi-01.example.com",
* datacenterId: datacenter.id,
* }));
* const vmfsDisks = host.then(host => vsphere.getVmfsDisks({
* hostSystemId: host.id,
* rescan: true,
* filter: "mpx.vmhba1:C0:T[12]:L0",
* }));
* ```
*/
function getVmfsDisksOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("vsphere:index/getVmfsDisks:getVmfsDisks", {
"filter": args.filter,
"hostSystemId": args.hostSystemId,
"rescan": args.rescan,
}, opts);
}
exports.getVmfsDisksOutput = getVmfsDisksOutput;
//# sourceMappingURL=getVmfsDisks.js.map