Skip to main content

risk_providers

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

Overview

Namerisk_providers
TypeResource
Idokta.risk.risk_providers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the risk provider object (example: 00rp12r4skkjkjgsn)
namestringName of the risk provider (example: Risk-Partner-X)
_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.
actionstringAction taken by Okta during authentication attempts based on the risk events sent by this provider (default: log_only)
clientIdstringThe ID of the OAuth 2.0 service app that's used to send risk events to Okta (example: 00cjkjjkkgjkdkjdkkljjsd)
createdstring (date-time)Timestamp when the risk provider object was created (example: 2021-01-05 22:18:30)
lastUpdatedstring (date-time)Timestamp when the risk provider object was last updated (example: 2021-01-05 22:18:30)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_risk_providersselectsubdomainLists all risk provider objects
get_risk_providerselectsubdomainRetrieves a risk provider object by ID
create_risk_providerinsertsubdomain, data__name, data__clientId, data__action, data__id, data___linksCreates a risk provider object. You can create a maximum of three risk provider objects.
replace_risk_providerreplacesubdomain, data__name, data__clientId, data__action, data__id, data___linksReplaces the properties for a given risk provider object ID
delete_risk_providerdeletesubdomainDeletes a risk provider object by its ID

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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)

SELECT examples

Lists all risk provider objects

SELECT
id,
name,
_links,
action,
clientId,
created,
lastUpdated
FROM okta.risk.risk_providers
WHERE subdomain = '{{ subdomain }}' -- required;

INSERT examples

Creates a risk provider object. You can create a maximum of three risk provider objects.

INSERT INTO okta.risk.risk_providers (
data__action,
data__clientId,
data__name,
subdomain
)
SELECT
'{{ action }}' --required,
'{{ clientId }}' --required,
'{{ name }}' --required,
'{{ subdomain }}'
RETURNING
id,
name,
_links,
action,
clientId,
created,
lastUpdated
;

REPLACE examples

Replaces the properties for a given risk provider object ID

REPLACE okta.risk.risk_providers
SET
data__action = '{{ action }}',
data__clientId = '{{ clientId }}',
data__name = '{{ name }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND data__name = '{{ name }}' --required
AND data__clientId = '{{ clientId }}' --required
AND data__action = '{{ action }}' --required
RETURNING
id,
name,
_links,
action,
clientId,
created,
lastUpdated;

DELETE examples

Deletes a risk provider object by its ID

DELETE FROM okta.risk.risk_providers
WHERE subdomain = '{{ subdomain }}' --required;