Show / Hide Table of Contents

Class GetDatastoreCluster

Inheritance
System.Object
GetDatastoreCluster
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 GetDatastoreCluster

Methods

View Source

InvokeAsync(GetDatastoreClusterArgs, InvokeOptions)

The vsphere..DatastoreCluster data source can be used to discover the ID of a datastore cluster in vSphere. This is useful to fetch the ID of a datastore cluster that you want to use to assign datastores to using the vsphere..NasDatastore or vsphere..VmfsDatastore resources, or create virtual machines in using the vsphere..VirtualMachine resource.

{{% 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 datastoreCluster = Output.Create(VSphere.GetDatastoreCluster.InvokeAsync(new VSphere.GetDatastoreClusterArgs
    {
        DatacenterId = data.Vsphere_datacenter.Dc.Id,
        Name = "datastore-cluster1",
    }));
}

}

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

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