Queries the permissions for a master-member relationship based on the relationship ID.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
bssapi:QueryPermissionList | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RelationId | integer | Yes | The relationship ID. Obtain this ID from the RelationId parameter in the response of the QueryRelationList operation. | 51463 |
Response elements
Parameter | Type | Description | Example |
object | |||
Code | string | The status code. | Success |
Message | string | The message returned. | Successful! |
RequestId | string | The request ID. | F6E29451-A3CD-4705-806D-0112D08F5C49 |
Success | boolean | Indicates whether the request was successful. | true |
| Data | object | The data returned. | |
EndTime | string | The time when the relationship expires. If this parameter is empty, the relationship has not expired. | 2021-03-06T15:12Z |
RelationType | string | The type of the relationship. Valid values: FinancialManagement and FinancialTrusteeship. | FinancialManagement |
StartTime | string | The time when the relationship takes effect. The time is in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2016-05-23T12:00:00Z is 20:00:00 on May 23, 2016 in UTC+8. | 2021-03-02T15:12Z |
State | string | The status of the relationship. The value is an enumeration member of RelationshipStatusEnum. | RELATED |
MasterId | integer | The ID of the Alibaba Cloud account. | 1990699401005016 |
MemberId | integer | The ID of the member account. | 1851253838840762 |
SetupTime | string | The time when the relationship was established. The time is in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2016-05-23T12:00:00Z is 20:00:00 on May 23, 2016 in UTC+8. | 2021-03-02T15:12Z |
| PermissionList | array<object> | The list of permissions. | |
object | |||
EndTime | string | The time when the permission expires. If this parameter is empty, the permission is still valid. The time is in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2016-05-23T12:00:00Z is 20:00:00 on May 23, 2016 in UTC+8. | 2021-03-05T15:12Z |
StartTime | string | The time when the permission takes effect. The time is in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ. For example, 2016-05-23T12:00:00Z is 20:00:00 on May 23, 2016 in UTC+8. | 2021-03-02T15:12Z |
PermissionCode | string | The permission code. | allow_synchronize_finance_identity |
PermissionName | string | The permission name. | The management account shares the credit control identity with the member. |
Description of the RelationshipStatusEnum type:
Value | Description | Notes |
INITIAL | Initial | The relationship is not in effect. |
CONFIRMING | Invitation pending | The relationship is not in effect. |
REJECTED | Rejected | The relationship is not in effect. |
CONNECTION_CANCELED | Canceled | The relationship is not in effect. |
RELATED | Associated | The relationship is in effect. |
CHANGE_CONFIRMING | Change pending confirmation | The relationship is in effect. |
CONNECTION_MASTER_CANCEL | Confirmation canceled | The relationship is not in effect. |
Examples
Success response
JSON format
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "F6E29451-A3CD-4705-806D-0112D08F5C49",
"Success": true,
"Data": {
"EndTime": "2021-03-06T15:12Z",
"RelationType": "FinancialManagement",
"StartTime": "2021-03-02T15:12Z",
"State": "RELATED",
"MasterId": 1990699401005016,
"MemberId": 1851253838840762,
"SetupTime": "2021-03-02T15:12Z",
"PermissionList": [
{
"EndTime": "2021-03-05T15:12Z",
"StartTime": "2021-03-02T15:12Z",
"PermissionCode": "allow_synchronize_finance_identity",
"PermissionName": "The management account shares the credit control identity with the member.\n"
}
]
}
}Error codes
HTTP status code | Error code | Error message | Description |
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. | System exception, please try again |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.