DescribeCrossAccounts
Queries cross-account management relationships.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:DescribeCrossAccounts |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Code |
string |
The return code. A value of 200 indicates success. |
200 |
| Message |
string |
The returned message. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned. |
successful |
| PageNumber |
integer |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of records. |
22 |
| CrossAccounts |
object |
||
| CrossAccount |
array<object> |
The list of cross-account information. |
|
|
object |
|||
| OwnerId |
integer |
The ID of the current account. |
184164xxxxx49795 |
| CrossAccountUserId |
integer |
The ID of the source account for the cross-account backup managed by the current account. |
15897534xxxxx625 |
| CrossAccountRoleName |
string |
The name of the role created in Resource Access Management (RAM) of the source account for the cross-account backup managed by the current account. |
BackupRole |
| Alias |
string |
The alias. The alias can be up to 32 characters in length. |
content |
| Id |
integer |
The type ID. |
1 |
| CreatedTime |
integer |
The creation time. The value is a UNIX timestamp. Unit: seconds. |
1654570439 |
| UpdatedTime |
integer |
The update time. The value is a UNIX timestamp. Unit: seconds. |
1640157098 |
| CrossAccountType |
string |
The cross-account type. |
CROSS_ACCOUNT |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Success": true,
"Code": "200",
"Message": "successful",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 22,
"CrossAccounts": {
"CrossAccount": [
{
"OwnerId": 0,
"CrossAccountUserId": 0,
"CrossAccountRoleName": "BackupRole",
"Alias": "content",
"Id": 1,
"CreatedTime": 1654570439,
"UpdatedTime": 1640157098,
"CrossAccountType": "CROSS_ACCOUNT"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.