v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBData Deletion
Gets a list of data deletion requests
Gets a list of data deletion requests based on several filter parameters.
get/api/v2/deletion/requests
Query parameters
next_pagestring
The next page of the previous search. If the next_page parameter is included, the rest of the query elements are ignored.
productstring
Retrieve only the requests related to the given product.
querystring
Retrieve only the requests that matches the given query.
statusstring
Retrieve only the requests with the given status.
page_sizeinteger
Sets the page size of the search.
Response
OK
Example response
{
"data": [
{
"attributes": {
"created_at": "2024-01-01T00:00:00.000000Z",
"created_by": "test.user@datadoghq.com",
"from_time": 1672527600000,
"indexes": [
"test-index",
"test-index-2"
],
"is_created": true,
"org_id": 321813,
"product": "logs",
"query": "service:xyz host:abc",
"starting_at": "2024-01-01T02:00:00.000000Z",
"status": "pending",
"to_time": 1704063600000,
"total_unrestricted": 100,
"updated_at": "2024-01-01T00:00:00.000000Z"
},
"id": "1",
"type": "deletion_request"
}
],
"meta": {
"count_product": {
"logs": 8,
"rum": 7
},
"count_status": {
"completed": 10,
"pending": 5
},
"next_page": "cGFnZTI=",
"product": "logs",
"request_status": "canceled"
}
}