Skip to main content

okta_accounts

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

Overview

Nameokta_accounts
TypeResource
Iddatadog.integrations.okta_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Okta account, a UUID hash of the account name. (example: f749daaf-682e-4208-a38d-c9b43162c609)
attributesobjectAttributes object for an Okta account.
typestringAccount type for an Okta account. (okta-accounts) (default: okta-accounts, example: okta-accounts)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_okta_accountselectaccount_idGet an Okta account.
list_okta_accountsselectList Okta accounts.
create_okta_accountinsertdataCreate an Okta account.
update_okta_accountupdateaccount_id, dataUpdate an Okta account.
delete_okta_accountdeleteaccount_idDelete an Okta account.

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
account_idstringNone
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 an Okta account.

SELECT
id,
attributes,
type
FROM datadog.integrations.okta_accounts
WHERE account_id = '{{ account_id }}' -- required
;

INSERT examples

Create an Okta account.

INSERT INTO datadog.integrations.okta_accounts (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Update an Okta account.

UPDATE datadog.integrations.okta_accounts
SET
data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND data = '{{ data }}' --required
RETURNING
data;

DELETE examples

Delete an Okta account.

DELETE FROM datadog.integrations.okta_accounts
WHERE account_id = '{{ account_id }}' --required
;