All Products
Search
Document Center

:GetResourceDirectory

Last Updated:Apr 12, 2023

Queries the information of a resource directory. If you use a management account to call this API operation, the system returns the information of the resource directory that is enabled by using the management account. If you use a member to call this operation, the system returns the information of the resource directory to which the member belongs.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

CD76D376-2517-4924-92C5-DBC52262F93A
ResourceDirectoryobject

The information of the resource directory.

RootFolderIdstring

The ID of the Root folder.

r-Zo****
ResourceDirectoryIdstring

The ID of the resource directory.

rd-St****
CreateTimestring

The time when the resource directory was enabled.

2019-02-18T15:32:10.473Z
MasterAccountIdstring

The ID of the management account.

172845045600****
MasterAccountNamestring

The name of the management account.

aliyun-admin
ControlPolicyStatusstring

The status of the Control Policy feature. Valid values:

  • Enabled: The feature is enabled.
  • PendingEnable: The feature is being enabled.
  • Disabled: The feature is disabled.
  • PendingDisable: The feature is being disabled.
Enabled
MemberDeletionStatusstring

The status of the member deletion feature. Valid values:

  • Enabled: The feature is enabled. You can call the DeleteAccount operation to delete members of the resource account type.
  • Disabled: The feature is disabled. You cannot delete members of the resource account type.
Enabled
IdentityInformationstring

The real-name verification information.

\*\*\* Co., Ltd.

Examples

Sample success responses

JSONformat

{
  "RequestId": "CD76D376-2517-4924-92C5-DBC52262F93A",
  "ResourceDirectory": {
    "RootFolderId": "r-Zo****",
    "ResourceDirectoryId": "rd-St****",
    "CreateTime": "2019-02-18T15:32:10.473Z",
    "MasterAccountId": "172845045600****",
    "MasterAccountName": "aliyun-admin",
    "ControlPolicyStatus": "Enabled",
    "MemberDeletionStatus": "Enabled",
    "IdentityInformation": "\\*\\*\\* Co., Ltd.\n"
  }
}

Error codes

HTTP status codeError codeError messageDescription
404ResourceDirectoryNotInUseThe specified account is not an Alibaba Cloud account or a member account of the resource directory.The account is not an Alibaba Cloud account or a member of a resource directory.

For a list of error codes, visit the Service error codes.