All Products
Search
Document Center

:ListUserRoles

Last Updated:Nov 15, 2024

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /api/metastore/auth/roles/userroles HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

PageSize

-1/100
RoleNamePatternstringNo

role name pattern filter

.*test.*

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

RequestId

B7F4B621-E41E-4C84-B97F-42B5380A32BB
Codestring

Code

OK
Messagestring

Message

.
Successboolean

success

true
UserRolesUserRoles

UserRoles

NextPageTokenstring

NextPageToken

2cb472ec1bf84f8d92f9c4baa0d21c19aa

Examples

Sample success responses

JSONformat

{
  "RequestId": "B7F4B621-E41E-4C84-B97F-42B5380A32BB",
  "Code": "OK",
  "Message": ".",
  "Success": true,
  "UserRoles": [
    {
      "Role": {
        "Name": "",
        "Description": "",
        "Users": [
          {
            "PrincipalArn": "acs:ram::[AliyunAccountId]:user/username_abc"
          }
        ],
        "DisplayName": "",
        "PrincipalArn": "",
        "CreateTime": 0,
        "UpdateTime": 0,
        "IsPredefined": 0
      },
      "GrantTime": 0,
      "User": {
        "PrincipalArn": "acs:ram::[AliyunAccountId]:user/username_abc"
      }
    }
  ],
  "NextPageToken": "2cb472ec1bf84f8d92f9c4baa0d21c19aa"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history