Queries a list of assigned roles. For example, you can query the administrators of a group by group ID.
Debugging
Authorization information
Request syntax
POST /v2/role/list_assignment HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| manage_resource_type | string | No | The type of the managed resource. Set the value to RT_Group, which specifies that the administrators of a group are queried. | RT_Group |
| manage_resource_id | string | No | The ID of the managed resource, such as a group ID. | 105***b82 |
| marker | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of marker. By default, this parameter is empty. | NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg |
| limit | integer | No | The maximum number of results to return. Valid values: 1 to 100. The number of returned results must be less than or equal to the specified number. | 50 |
Response parameters
Examples
Sample success responses
JSONformat
{
"assignment_list": [
{
"domain_id": "hz1",
"identity": {
"identity_type": "IT_User",
"identity_id": "16435bdf934248b788b7b3771ee9a3dw"
},
"role_id": "SystemGroupAdmin",
"manage_resource_type": "RT_Group",
"manage_resource_id": "105***b82",
"creator": "216***c83",
"created_at": 1622682267564
}
],
"next_marker": "NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg"
}Error codes
For a list of error codes, visit the Service error codes.
