data_deletion_requests
Creates, updates, deletes, gets or lists a data_deletion_requests
resource.
Overview
Name | data_deletion_requests |
Type | Resource |
Id | datadog.organization.data_deletion_requests |
Fields
The following fields are returned by SELECT
queries:
- get_data_deletion_requests
Name | Datatype | Description |
---|---|---|
id | string | The ID of the created data deletion request. (example: 1) |
attributes | object | Deletion attribute for data deletion response. |
type | string | The type of the request created. (example: deletion_request) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_data_deletion_requests | select | region | next_page , product , query , status , page_size | Gets a list of data deletion requests based on several filter parameters. |
create_data_deletion_request | insert | product , region , data__data | Creates a data deletion request by providing a query and a timeframe targeting the proper data. | |
cancel_data_deletion_request | exec | id , region | Cancels a data deletion request by providing its ID. |
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.
Name | Datatype | Description |
---|---|---|
id | string | ID of the deletion request. |
product | string | Name of the product to be deleted, either logs or rum . |
region | string | (default: datadoghq.com) |
next_page | string | The next page of the previous search. If the next_page parameter is included, the rest of the query elements are ignored. (example: cGFnZTI=) |
page_size | integer (int64) | Sets the page size of the search. (example: 50) |
product | string | Retrieve only the requests related to the given product. (example: logs) |
query | string | Retrieve only the requests that matches the given query. (example: service:xyz host:abc) |
status | string | Retrieve only the requests with the given status. (example: pending) |
SELECT
examples
- get_data_deletion_requests
Gets a list of data deletion requests based on several filter parameters.
SELECT
id,
attributes,
type
FROM datadog.organization.data_deletion_requests
WHERE region = '{{ region }}' -- required
AND next_page = '{{ next_page }}'
AND product = '{{ product }}'
AND query = '{{ query }}'
AND status = '{{ status }}'
AND page_size = '{{ page_size }}'
;
INSERT
examples
- create_data_deletion_request
- Manifest
Creates a data deletion request by providing a query and a timeframe targeting the proper data.
INSERT INTO datadog.organization.data_deletion_requests (
data__data,
product,
region
)
SELECT
'{{ data }}' /* required */,
'{{ product }}',
'{{ region }}'
RETURNING
data,
meta
;
# Description fields are for documentation purposes
- name: data_deletion_requests
props:
- name: product
value: string
description: Required parameter for the data_deletion_requests resource.
- name: region
value: string
description: Required parameter for the data_deletion_requests resource.
- name: data
value: object
description: |
Data needed to create a data deletion request.
Lifecycle Methods
- cancel_data_deletion_request
Cancels a data deletion request by providing its ID.
EXEC datadog.organization.data_deletion_requests.cancel_data_deletion_request
@id='{{ id }}' --required,
@region='{{ region }}' --required
;