okta_accounts
Creates, updates, deletes, gets or lists an okta_accounts
resource.
Overview
Name | okta_accounts |
Type | Resource |
Id | datadog.integrations.okta_accounts |
Fields
The following fields are returned by SELECT
queries:
- get_okta_account
- list_okta_accounts
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Okta account, a UUID hash of the account name. (example: f749daaf-682e-4208-a38d-c9b43162c609) |
attributes | object | Attributes object for an Okta account. |
type | string | Account type for an Okta account. (default: okta-accounts, example: okta-accounts) |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the Okta account, a UUID hash of the account name. (example: f749daaf-682e-4208-a38d-c9b43162c609) |
attributes | object | Attributes object for an Okta account. |
type | string | Account type for an Okta account. (default: okta-accounts, example: okta-accounts) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_okta_account | select | account_id , region | Get an Okta account. | |
list_okta_accounts | select | region | List Okta accounts. | |
create_okta_account | insert | region , data__data | Create an Okta account. | |
update_okta_account | update | account_id , region , data__data | Update an Okta account. | |
delete_okta_account | delete | account_id , region | Delete 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.
Name | Datatype | Description |
---|---|---|
account_id | string | None |
region | string | (default: datadoghq.com) |
SELECT
examples
- get_okta_account
- list_okta_accounts
Get an Okta account.
SELECT
id,
attributes,
type
FROM datadog.integrations.okta_accounts
WHERE account_id = '{{ account_id }}' -- required
AND region = '{{ region }}' -- required
;
List Okta accounts.
SELECT
id,
attributes,
type
FROM datadog.integrations.okta_accounts
WHERE region = '{{ region }}' -- required
;
INSERT
examples
- create_okta_account
- Manifest
Create an Okta account.
INSERT INTO datadog.integrations.okta_accounts (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data
;
# Description fields are for documentation purposes
- name: okta_accounts
props:
- name: region
value: string
description: Required parameter for the okta_accounts resource.
- name: data
value: object
description: |
Schema for an Okta account.
UPDATE
examples
- update_okta_account
Update an Okta account.
UPDATE datadog.integrations.okta_accounts
SET
data__data = '{{ data }}'
WHERE
account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
AND data__data = '{{ data }}' --required
RETURNING
data;
DELETE
examples
- delete_okta_account
Delete an Okta account.
DELETE FROM datadog.integrations.okta_accounts
WHERE account_id = '{{ account_id }}' --required
AND region = '{{ region }}' --required
;