Revoke a requested temporary grant
https://api.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.us3.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.us5.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.datadoghq.eu/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.ap1.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.ap2.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.uk1.datadoghq.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.ddog-gov.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/granthttps://api.us2.ddog-gov.com/api/v2/usage/admin/temporary-grant-requests/{request_id}/grantOverview
Revoke only the grant that's still associated with this approved request. The request and audit history remain. A stale request can't revoke a replacement grant. Requires the Billing Edit permission. Requires an authenticated human user. Service-account credentials aren't supported. Request status remains approved after the grant's expiry, revocation, or replacement.
OAuth apps require the billing_edit authorization scope to access this endpoint.
Arguments
Path Parameters
request_id [required]The temporary grant request UUID.
Response
No Content
Bad Request
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Unauthorized
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Forbidden
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Not Found
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Conflict
API error response.
errors [required]A list of errors.
detailA human-readable explanation specific to this occurrence of the error.
metaNon-standard meta-information about the error
sourceReferences to the source of the error.
headerA string indicating the name of a single request header which caused the error.
parameterA string indicating which URI query parameter caused the error.
pointerA JSON pointer to the value in the request document that caused the error.
statusStatus code of the response.
titleShort human-readable summary of the error.
{
"errors": [
{
"detail": "Missing required attribute in body",
"meta": {},
"source": {
"header": "Authorization",
"parameter": "limit",
"pointer": "/data/attributes/title"
},
"status": "400",
"title": "Bad Request"
}
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Code Example
# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Path parameters
export request_id="12345678-1234-1234-1234-123456789012"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X DELETE "https://api.${DD_SITE}/api/v2/usage/admin/temporary-grant-requests/${request_id}/grant" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"