Skip to main content

identity_providers

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

Overview

Nameidentity_providers
TypeResource
Iddatadog.organization.identity_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the identity provider. (example: 00000000-0000-0000-0000-000000000001)
attributesobjectAttributes of an organization identity provider.
typestringThe resource type for identity providers. (identity_providers) (example: identity_providers)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_identity_providersselectGet all identity providers available for the current organization.
update_identity_providerupdateidp_id, dataEnable or disable an identity provider for the current organization.

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
idp_idstringThe ID of the identity provider.
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

Get all identity providers available for the current organization.

SELECT
id,
attributes,
type
FROM datadog.organization.identity_providers
;

UPDATE examples

Enable or disable an identity provider for the current organization.

UPDATE datadog.organization.identity_providers
SET
data = '{{ data }}'
WHERE
idp_id = '{{ idp_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;