GetFolder
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.
Example Usage
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",
}));
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
folder = vsphere.get_folder(path="/dc1/datastore/folder1")import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const folder = pulumi.output(vsphere.getFolder({
path: "/dc1/datastore/folder1",
}, { async: true }));Using GetFolder
function getFolder(args: GetFolderArgs, opts?: InvokeOptions): Promise<GetFolderResult>function get_folder(path=None, opts=None)func LookupFolder(ctx *Context, args *LookupFolderArgs, opts ...InvokeOption) (*LookupFolderResult, error)Note: This function is named
LookupFolderin the Go SDK.
public static class GetFolder {
public static Task<GetFolderResult> InvokeAsync(GetFolderArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Path string
The absolute path of the folder. For example, given a default datacenter of
default-dc, a folder of typevm, and a folder name oftest-folder, the resulting path would be/default-dc/vm/test-folder. The valid folder types to be used in the path are:vm,host,datacenter,datastore, ornetwork.
- Path string
The absolute path of the folder. For example, given a default datacenter of
default-dc, a folder of typevm, and a folder name oftest-folder, the resulting path would be/default-dc/vm/test-folder. The valid folder types to be used in the path are:vm,host,datacenter,datastore, ornetwork.
- path string
The absolute path of the folder. For example, given a default datacenter of
default-dc, a folder of typevm, and a folder name oftest-folder, the resulting path would be/default-dc/vm/test-folder. The valid folder types to be used in the path are:vm,host,datacenter,datastore, ornetwork.
- path str
The absolute path of the folder. For example, given a default datacenter of
default-dc, a folder of typevm, and a folder name oftest-folder, the resulting path would be/default-dc/vm/test-folder. The valid folder types to be used in the path are:vm,host,datacenter,datastore, ornetwork.
GetFolder Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.