Skip to main content

key_validation

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

Overview​

Namekey_validation
TypeResource
Iddatadog.organization.key_validation

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
statusstringStatus of the validation. Always ok when both the API key and the application key are valid. (ok) (example: ok)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
validate_apikeyselectCheck that the API key and application key used for the request are both valid.<br />Returns &#123;"status": "ok"&#125; on success, 401 or 403 otherwise. Useful as a<br />lightweight authentication probe before issuing other API calls that require<br />full credentials.

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.

SELECT examples​

Check that the API key and application key used for the request are both valid.<br />Returns &#123;"status": "ok"&#125; on success, 401 or 403 otherwise. Useful as a<br />lightweight authentication probe before issuing other API calls that require<br />full credentials.

SELECT
status
FROM datadog.organization.key_validation
;