All Products
Search
Document Center

Enterprise Distributed Application Service:ListRole

Last Updated:Mar 01, 2024

Queries roles.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /pop/v5/account/role_list

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

No request parameters.

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

57609587-DFA2-41EC-****-*********
RoleListobject []

The roles.

ActionListobject []

The set of permissions to be granted to the role.

Codestring

The serial number of the permission that is granted to the role.

1
Descriptionstring

The description of the permission to be granted to the role.

Operations in operation records
GroupIdstring

The ID of the permission group to which the permission that is granted to the role belongs.

31
Namestring

The name of the permission to be granted to the role.

Operation records
Roleobject

The roles.

UpdateTimelong

The timestamp when the role was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1542717260156
IsDefaultboolean

Indicates whether the role is a default role.

false
AdminUserIdstring

The ID of the Alibaba Cloud account.

test**@aliyun.com
CreateTimelong

The timestamp when the role was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1542717260156
Namestring

The name of the role.

Super Admin(All privileges)
Idinteger

The ID of the role.

1

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "57609587-DFA2-41EC-****-*********",
  "RoleList": {
    "RoleItem": [
      {
        "ActionList": {
          "Action": [
            {
              "Code": "1",
              "Description": "Operations in operation records\n",
              "GroupId": "31",
              "Name": "Operation records\n"
            }
          ]
        },
        "Role": {
          "UpdateTime": 1542717260156,
          "IsDefault": false,
          "AdminUserId": "test**@aliyun.com",
          "CreateTime": 1542717260156,
          "Name": "Super Admin(All privileges)",
          "Id": 1
        }
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history