dr_status
Creates, updates, deletes, gets or lists a dr_status resource.
Overview​
| Name | dr_status |
| Type | Resource |
| Id | okta.dr.dr_status |
Fields​
The following fields are returned by SELECT queries:
- get_drstatus_for_domain
- get_drstatus
| Name | Datatype | Description |
|---|---|---|
domain | string | Domain for your org |
isFailedOver | boolean | Indicates if the domain has been failed over |
| Name | Datatype | Description |
|---|---|---|
domain | string | Domain for your org |
isFailedOver | boolean | Indicates if the domain has been failed over |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_drstatus_for_domain | select | domain, subdomain | Retrieves the failover or failback status for the domain specified in the request path | |
get_drstatus | select | subdomain | Retrieves the failover or failback status for all the domains for your org |
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 |
|---|---|---|
domain | string | The Okta domain name of your org or one of your custom domains |
subdomain | string | (default: my-org) |
SELECT examples​
- get_drstatus_for_domain
- get_drstatus
Retrieves the failover or failback status for the domain specified in the request path
SELECT
domain,
isFailedOver
FROM okta.dr.dr_status
WHERE domain = '{{ domain }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;
Retrieves the failover or failback status for all the domains for your org
SELECT
domain,
isFailedOver
FROM okta.dr.dr_status
WHERE subdomain = '{{ subdomain }}' -- required
;