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. (default: authn_mappings, example: authn_mappings)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_auth_nmappingselectauthn_mapping_id, regionGet an AuthN Mapping specified by the AuthN Mapping UUID.
list_auth_nmappingsselectregionpage[size], page[number], sort, filter, resource_typeList all AuthN Mappings in the org.
create_auth_nmappinginsertregion, data__dataCreate an AuthN Mapping.
update_auth_nmappingupdateauthn_mapping_id, region, data__dataEdit an AuthN Mapping.
delete_auth_nmappingdeleteauthn_mapping_id, regionDelete 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.
regionstring(default: datadoghq.com)
filterstringFilter all mappings by the given string.
page[number]integer (int64)Specific page number to return.
page[size]integer (int64)Size for a given 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
AND region = '{{ region }}' -- required
;

INSERT examples

Create an AuthN Mapping.

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

UPDATE examples

Edit an AuthN Mapping.

UPDATE datadog.organization.authn_mappings
SET
data__data = '{{ data }}'
WHERE
authn_mapping_id = '{{ authn_mapping_id }}' --required
AND region = '{{ region }}' --required
AND data__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
AND region = '{{ region }}' --required
;