Skip to main content

authn_mappings

Creates, updates, deletes, gets or lists an authn_mappings resource.

Overview

Nameauthn_mappings
TypeResource
Iddatadog.organization.authn_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the AuthN Mapping. (example: 3653d3c6-0c75-11ea-ad28-fb5701eabc7d)
attributesobjectAttributes of AuthN Mapping.
relationshipsobjectAll relationships associated with AuthN Mapping.
typestringAuthN Mappings resource type. (authn_mappings) (default: authn_mappings, example: authn_mappings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_auth_nmappingselectauthn_mapping_idGet an AuthN Mapping specified by the AuthN Mapping UUID.
list_auth_nmappingsselectpage[size], page[number], sort, filter, resource_typeList all AuthN Mappings in the org.
create_auth_nmappinginsertdataCreate an AuthN Mapping.
update_auth_nmappingupdateauthn_mapping_id, dataEdit an AuthN Mapping.
delete_auth_nmappingdeleteauthn_mapping_idDelete an AuthN Mapping specified by AuthN Mapping UUID.

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
authn_mapping_idstringThe UUID of the AuthN Mapping.
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.
filterstringFilter all mappings by the given string.
page[number]integer (int64)Specific page number to return.
page[size]integer (int64)Number of items to return per page. The maximum allowed value is 100.
resource_typestringFilter by mapping resource type. Defaults to "role" if not specified.
sortstringSort AuthN Mappings depending on the given field.

SELECT examples

Get an AuthN Mapping specified by the AuthN Mapping UUID.

SELECT
id,
attributes,
relationships,
type
FROM datadog.organization.authn_mappings
WHERE authn_mapping_id = '{{ authn_mapping_id }}' -- required
;

INSERT examples

Create an AuthN Mapping.

INSERT INTO datadog.organization.authn_mappings (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data,
included
;

UPDATE examples

Edit an AuthN Mapping.

UPDATE datadog.organization.authn_mappings
SET
data = '{{ data }}'
WHERE
authn_mapping_id = '{{ authn_mapping_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data,
included;

DELETE examples

Delete an AuthN Mapping specified by AuthN Mapping UUID.

DELETE FROM datadog.organization.authn_mappings
WHERE authn_mapping_id = '{{ authn_mapping_id }}' --required
;