Skip to main content

current_configuration

Creates, updates, deletes, gets or lists a current_configuration resource.

Overview​

Namecurrent_configuration
TypeResource
Idokta.threats.current_configuration

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
actionstringSpecifies how Okta responds to authentication requests from suspicious IP addresses (none, audit, block) (example: none)
createdstring (date-time)Timestamp when the ThreatInsight Configuration object was created (example: 2020-08-05T22:18:30.629Z)
excludeZonesarrayAccepts a list of Network Zone IDs. IPs in the excluded network zones aren't logged or blocked. This ensures that traffic from known, trusted IPs isn't accidentally logged or blocked.
lastUpdatedstring (date-time)Timestamp when the ThreatInsight Configuration object was last updated (example: 2020-09-08T20:53:20.882Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_current_configurationselectsubdomainRetrieves the ThreatInsight configuration for the org
update_configurationupdatesubdomain, actionUpdates the ThreatInsight configuration for the 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.

NameDatatypeDescription
subdomainstring(default: my-org)

SELECT examples​

Retrieves the ThreatInsight configuration for the org

SELECT
_links,
action,
created,
excludeZones,
lastUpdated
FROM okta.threats.current_configuration
WHERE subdomain = '{{ subdomain }}' -- required
;

UPDATE examples​

Updates the ThreatInsight configuration for the org

UPDATE okta.threats.current_configuration
SET
action = '{{ action }}',
excludeZones = '{{ excludeZones }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND action = '{{ action }}' --required
RETURNING
_links,
action,
created,
excludeZones,
lastUpdated;