Show / Hide Table of Contents

Class GetVmfsDisks

Inheritance
System.Object
GetVmfsDisks
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.VSphere
Assembly: Pulumi.VSphere.dll
Syntax
public static class GetVmfsDisks

Methods

View Source

InvokeAsync(GetVmfsDisksArgs, InvokeOptions)

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.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using VSphere = Pulumi.VSphere;

class MyStack : Stack
{
public MyStack()
{
    var datacenter = Output.Create(VSphere.GetDatacenter.InvokeAsync(new VSphere.GetDatacenterArgs
    {
        Name = "dc1",
    }));
    var host = datacenter.Apply(datacenter => Output.Create(VSphere.GetHost.InvokeAsync(new VSphere.GetHostArgs
    {
        DatacenterId = datacenter.Id,
        Name = "esxi1",
    })));
    var available = host.Apply(host => Output.Create(VSphere.GetVmfsDisks.InvokeAsync(new VSphere.GetVmfsDisksArgs
    {
        Filter = "mpx.vmhba1:C0:T[12]:L0",
        HostSystemId = host.Id,
        Rescan = true,
    })));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetVmfsDisksResult> InvokeAsync(GetVmfsDisksArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetVmfsDisksArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetVmfsDisksResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.