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.Gcp.Organizations
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetFolder
Methods
View SourceInvokeAsync(GetFolderArgs, InvokeOptions)
Use this data source to get information about a Google Cloud Folder.
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var myFolder1 = Output.Create(Gcp.Organizations.GetFolder.InvokeAsync(new Gcp.Organizations.GetFolderArgs
{
Folder = "folders/12345",
LookupOrganization = true,
}));
var myFolder2 = Output.Create(Gcp.Organizations.GetFolder.InvokeAsync(new Gcp.Organizations.GetFolderArgs
{
Folder = "folders/23456",
}));
this.MyFolder1Organization = myFolder1.Apply(myFolder1 => myFolder1.Organization);
this.MyFolder2Parent = myFolder2.Apply(myFolder2 => myFolder2.Parent);
}
[Output("myFolder1Organization")]
public Output<string> MyFolder1Organization { get; set; }
[Output("myFolder2Parent")]
public Output<string> MyFolder2Parent { get; set; }
}
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> |