All Products
Search
Document Center

Data Lake Formation:ListRoles

Last Updated:Dec 16, 2025

Retrieves roles.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /dlf/v1/auth/roles/list HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

roleName

string

No

The role name.

role_name

pageToken

string

No

The token used to retrieve the next page of results. If the response does not return this parameter, pass an empty string ("").

""

maxResults

integer

No

The number of entries to return on each page.

10

Response elements

Element

Type

Description

Example

object

The response body.

roles

array

The roles.

Role

The role information.

nextPageToken

string

The token used to retrieve the next page of results. If a null value is returned, the current page is the last page.

E8ABEB1C3DB893D16576269017992F57

Examples

Success response

JSON format

{
  "roles": [
    {
      "createdAt": 0,
      "isPredefined": "",
      "updatedBy": "",
      "createdBy": "",
      "displayName": "",
      "roleName": "",
      "description": "",
      "rolePrincipal": "",
      "users": [
        {
          "createdAt": 0,
          "updatedBy": "",
          "createdBy": "",
          "displayName": "",
          "userName": "",
          "type": "",
          "userId": "",
          "userPrincipal": "",
          "updatedAt": 0
        }
      ],
      "updatedAt": 0
    }
  ],
  "nextPageToken": "E8ABEB1C3DB893D16576269017992F57"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.