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
Parameter | Type | Required | Description | Example |
---|
The current API does not require request parameters
Response parameters
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message | Description |
---|---|---|---|
404 | ResourceDirectoryNotInUse | The 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.