Queries the members of a management account.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
bssapi:QueryRelationList | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
UserId | long | Yes | The ID of the Alibaba Cloud account. | 1990699401005016 |
PageNum | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. | 20 |
StatusList | array | No | The states of the relationships between the management account and its members. The valid values of this parameter are the enumeration members of the RelationshipStatusEnum data type. If you do not specify this parameter, valid relationship states are queried by default. | |
string | No | RELATED |
Enumeration members of RelationshipStatusEnum
Enumeration member | Description | Remarks |
---|---|---|
INITIAL | The relationship is initialized. | The relationship is invalid. |
CONFIRMING | The invitation is to be confirmed. | The relationship is invalid. |
REJECTED | The invitation is rejected. | The relationship is invalid. |
CONNECTION_CANCELED | The relationship is removed. | The relationship is invalid. |
RELATED | The relationship is established. | The relationship is valid. |
CHANGE_CONFIRMING | The valid relationship is changed and to be confirmed. | The relationship is valid. |
CONNECTION_MASTER_CANCEL | The invitation is canceled. | The relationship is invalid. |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "7FC5D662-37FD-40A6-85B1-33442D815184",
"Success": true,
"Data": {
"PageNum": 1,
"PageSize": 20,
"TotalCount": 100,
"FinancialRelationInfoList": [
{
"EndTime": "2021-03-08T15:12Z",
"RelationType": "FinancialManagement",
"AccountNickName": "test4",
"StartTime": "2021-03-02T15:12Z",
"State": "RELATED",
"AccountId": 1851253838840762,
"SetupTime": "2021-03-02T15:12Z",
"AccountType": "MEMBER",
"AccountName": "caiwuyun_test4",
"RelationId": 51463
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidParameter | The specified request contains invalid parameters. |
400 | MissingParameter | The specified request lacks essential parameters. |
500 | InternalError | An error occurred in the internal server. |
For a list of error codes, visit the Service error codes.