provider Roles GET /api/v2/roles
@utdk/datadog /api/v2/roles
List roles
Returns all roles, including their names and their unique identifiers.
page[size] query
Size for a given page. The maximum allowed value is 100.
integer
page[number] query
Specific page number to return.
integer
sort query
Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`.
enum: name, -name, modified_at, -modified_at…
filter query
Filter all roles by the given string.
string
filter[id] query
Filter all roles by the given list of role IDs.
string

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listroles
GET/api/v2/roles
Returns all roles, including their names and their unique identifiers.

Size for a given page. The maximum allowed value is 100.

Specific page number to return.

Sort roles depending on the given field. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example: `sort=-name`.

Filter all roles by the given string.

Filter all roles by the given list of role IDs.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.listroles({
  "page[size]": 10,
  "page[number]": 0,
  "sort": "name"
})