Skip to main content

restriction_query_users

Creates, updates, deletes, gets or lists a restriction_query_users resource.

Overview

Namerestriction_query_users
TypeResource
Iddatadog.logs.restriction_query_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the restriction query. (example: 79a0e60a-644a-11ea-ad29-43329f7f58b5)
attributesobjectAttributes of the restriction query.
typestringRestriction queries type. (default: logs_restriction_queries, example: logs_restriction_queries)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_restriction_queriesselectuser_idGet all restriction queries for a given user.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
user_idstringThe ID of the user.

SELECT examples

Get all restriction queries for a given user.

SELECT
id,
attributes,
type
FROM datadog.logs.restriction_query_users
WHERE user_id = '{{ user_id }}' -- required
;