Show / Hide Table of Contents

Class GetVappContainer

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

Methods

View Source

InvokeAsync(GetVappContainerArgs, InvokeOptions)

The vsphere..VappContainer data source can be used to discover the ID of a vApp container in vSphere. This is useful to fetch the ID of a vApp container that you want to use to 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 pool = datacenter.Apply(datacenter => Output.Create(VSphere.GetVappContainer.InvokeAsync(new VSphere.GetVappContainerArgs
    {
        DatacenterId = datacenter.Id,
        Name = "vapp-container-1",
    })));
}

}

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

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