GetResourceDirectories
This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user.
NOTE: Available in 1.86.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = Output.Create(AliCloud.ResourceManager.GetResourceDirectories.InvokeAsync());
this.ResourceDirectoryId = @default.Apply(@default => @default.Directories[0].Id);
}
[Output("resourceDirectoryId")]
public Output<string> ResourceDirectoryId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.resourcemanager.get_resource_directories()
pulumi.export("resourceDirectoryId", default.directories[0]["id"])import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultResourceDirectories = pulumi.output(alicloud.resourcemanager.getResourceDirectories({ async: true }));
export const resourceDirectoryId = defaultResourceDirectories.directories[0].id;Using GetResourceDirectories
function getResourceDirectories(args: GetResourceDirectoriesArgs, opts?: InvokeOptions): Promise<GetResourceDirectoriesResult>function get_resource_directories(output_file=None, opts=None)func GetResourceDirectories(ctx *Context, args *GetResourceDirectoriesArgs, opts ...InvokeOption) (*GetResourceDirectoriesResult, error)public static class GetResourceDirectories {
public static Task<GetResourceDirectoriesResult> InvokeAsync(GetResourceDirectoriesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetResourceDirectories Result
The following output properties are available:
- Directories
List<Pulumi.
Ali Cloud. Resource Manager. Outputs. Get Resource Directories Directory> A list of resource directories. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Output
File string
- Directories
[]Get
Resource Directories Directory A list of resource directories. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Output
File string
- directories
Get
Resource Directories Directory[] A list of resource directories. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- output
File string
- directories
List[Get
Resource Directories Directory] A list of resource directories. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- output_
file str
Supporting Types
GetResourceDirectoriesDirectory
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Id string
The ID of resource directory. *
master_account_id- The ID of the master account. *master_account_name- The name of the master account.- Master
Account stringId - Master
Account stringName - Resource
Directory stringId The ID of the resource directory.
- Root
Folder stringId The ID of the root folder.
- Id string
The ID of resource directory. *
master_account_id- The ID of the master account. *master_account_name- The name of the master account.- Master
Account stringId - Master
Account stringName - Resource
Directory stringId The ID of the resource directory.
- Root
Folder stringId The ID of the root folder.
- id string
The ID of resource directory. *
master_account_id- The ID of the master account. *master_account_name- The name of the master account.- master
Account stringId - master
Account stringName - resource
Directory stringId The ID of the resource directory.
- root
Folder stringId The ID of the root folder.
- id str
The ID of resource directory. *
master_account_id- The ID of the master account. *master_account_name- The name of the master account.- master_
account_ strid - master_
account_ strname - resource_
directory_ strid The ID of the resource directory.
- root_
folder_ strid The ID of the root folder.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.