identity_providers
Creates, updates, deletes, gets or lists an identity_providers resource.
Overview
| Name | identity_providers |
| Type | Resource |
| Id | datadog.organization.identity_providers |
Fields
The following fields are returned by SELECT queries:
- list_identity_providers
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier of the identity provider. (example: 00000000-0000-0000-0000-000000000001) |
attributes | object | Attributes of an organization identity provider. |
type | string | The resource type for identity providers. (identity_providers) (example: identity_providers) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_identity_providers | select | Get all identity providers available for the current organization. | ||
update_identity_provider | update | idp_id, data | Enable 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.
| Name | Datatype | Description |
|---|---|---|
idp_id | string | The ID of the identity provider. |
site | string | The 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
- list_identity_providers
Get all identity providers available for the current organization.
SELECT
id,
attributes,
type
FROM datadog.organization.identity_providers
;
UPDATE examples
- update_identity_provider
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;