Class GetFolder
Inheritance
System.Object
GetFolder
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 GetFolder
Methods
View SourceInvokeAsync(GetFolderArgs, InvokeOptions)
The vsphere..Folder data source can be used to get the general attributes of a
vSphere inventory folder. Paths are absolute and include must include the
datacenter.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var folder = Output.Create(VSphere.GetFolder.InvokeAsync(new VSphere.GetFolderArgs
{
Path = "/dc1/datastore/folder1",
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetFolderResult> InvokeAsync(GetFolderArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetFolderArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetFolderResult> |