Skip to main content

bot_protection_configuration

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

Overview​

Namebot_protection_configuration
TypeResource
Idokta.bot_protection.bot_protection_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.
enforcementTypestringThe type of enforcement to trigger when a bot is detected (OKTA_CHALLENGE)
levelstringThe sensitivity level of bot detection (ANY, HIGH, LOW, MEDIUM)
modestringThe enforcement mode for bot protection (DISABLED, ENFORCED, LOG_ONLY)
supportedFlowsarrayAn array of authentication flows that have bot protection enabled

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_bot_protection_configurationselectsubdomainRetrieves the bot protection configuration for your org
update_bot_protection_configurationupdatesubdomain, level, modeUpdates the bot protection configuration 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.

NameDatatypeDescription
subdomainstring(default: my-org)

SELECT examples​

Retrieves the bot protection configuration for your org

SELECT
_links,
enforcementType,
level,
mode,
supportedFlows
FROM okta.bot_protection.bot_protection_configuration
WHERE subdomain = '{{ subdomain }}' -- required
;

UPDATE examples​

Updates the bot protection configuration for your org

UPDATE okta.bot_protection.bot_protection_configuration
SET
enforcementType = '{{ enforcementType }}',
level = '{{ level }}',
mode = '{{ mode }}',
supportedFlows = '{{ supportedFlows }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND level = '{{ level }}' --required
AND mode = '{{ mode }}' --required
RETURNING
_links,
enforcementType,
level,
mode,
supportedFlows;