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:

OutputFile string
OutputFile string
outputFile string
output_file str

GetResourceDirectories Result

The following output properties are available:

Directories List<Pulumi.AliCloud.ResourceManager.Outputs.GetResourceDirectoriesDirectory>

A list of resource directories. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

OutputFile string
Directories []GetResourceDirectoriesDirectory

A list of resource directories. Each element contains the following attributes:

Id string

The provider-assigned unique ID for this managed resource.

OutputFile string
directories GetResourceDirectoriesDirectory[]

A list of resource directories. Each element contains the following attributes:

id string

The provider-assigned unique ID for this managed resource.

outputFile string
directories List[GetResourceDirectoriesDirectory]

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.

MasterAccountId string
MasterAccountName string
ResourceDirectoryId string

The ID of the resource directory.

RootFolderId string

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.

MasterAccountId string
MasterAccountName string
ResourceDirectoryId string

The ID of the resource directory.

RootFolderId string

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.

masterAccountId string
masterAccountName string
resourceDirectoryId string

The ID of the resource directory.

rootFolderId string

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_id str
master_account_name str
resource_directory_id str

The ID of the resource directory.

root_folder_id str

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 alicloud Terraform Provider.