Class GetFolders
Inheritance
System.Object
GetFolders
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.AliCloud.ResourceManager
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetFolders
Methods
View SourceInvokeAsync(GetFoldersArgs, InvokeOptions)
This data source provides the resource manager folders of the current Alibaba Cloud user.
NOTE: Available in 1.84.0+.
NOTE: You can view only the information of the first-level child folders of the specified folder.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.ResourceManager.GetFolders.InvokeAsync(new AliCloud.ResourceManager.GetFoldersArgs
{
NameRegex = "tftest",
}));
this.FirstFolderId = example.Apply(example => example.Folders[0].Id);
}
[Output("firstFolderId")]
public Output<string> FirstFolderId { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetFoldersResult> InvokeAsync(GetFoldersArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetFoldersArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetFoldersResult> |