provider Logs Restriction Queries GET /api/v2/logs/config/restriction_queries/{restriction_query_id}/roles
@utdk/datadog /api/v2/logs/config/restriction_queries/{restriction_query_id}/roles
List roles for a restriction query
Returns all roles that have a given restriction query.
restriction_query_id path required
The ID of the restriction query.
string
page[size] query
Size for a given page. The maximum allowed value is 100.
integer
page[number] query
Specific page number to return.
integer

Try it

Authentication
Configure credentials for Datadog API V2 Collection
listrestrictionqueryroles
GET/api/v2/logs/config/restriction_queries/{restriction_query_id}/roles
Returns all roles that have a given restriction query.

Parameters

required

The ID of the restriction query.

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

Specific page number to return.

Configure credentials above to enable sending.

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

TypeScript

import datadog from '@utdk/datadog';

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