Show / Hide Table of Contents

Class GetDatacenter

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

Methods

View Source

InvokeAsync(GetDatacenterArgs, InvokeOptions)

The vsphere..Datacenter data source can be used to discover the ID of a vSphere datacenter. This can then be used with resources or data sources that require a datacenter, such as the vsphere..Host data source.

{{% 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",
    }));
}

}

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

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