Skip to main content

principal_rate_limit_entities

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

Overview​

Nameprincipal_rate_limit_entities
TypeResource
Idokta.principal_rate_limits.principal_rate_limit_entities

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the principle rate limit entity
createdBystringThe Okta user ID of the user who created the principle rate limit entity
createdDatestring (date-time)The date and time the principle rate limit entity was created
defaultConcurrencyPercentageintegerThe default percentage of a given concurrency limit threshold that the owning principal can consume
defaultPercentageintegerThe default percentage of a given rate limit threshold that the owning principal can consume
lastUpdatestring (date-time)The date and time the principle rate limit entity was last updated
lastUpdatedBystringThe Okta user ID of the user who last updated the principle rate limit entity
orgIdstringThe unique identifier of the Okta org
principalIdstringThe unique identifier of the principal. This is the ID of the API token or OAuth 2.0 app.
principalTypestringThe type of principal, either an API token or an OAuth 2.0 app (OAUTH_CLIENT, SSWS_TOKEN)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_principal_rate_limit_entityselectprincipalRateLimitId, subdomainRetrieves a principal rate limit entity by principalRateLimitId
list_principal_rate_limit_entitiesselectfilter, subdomainafter, limitLists all Principal Rate Limit entities considering the provided parameters
create_principal_rate_limit_entityinsertsubdomain, principalId, principalTypeCreates a new principal rate limit entity. Okta only allows one principal rate limit entity per org and principal.
replace_principal_rate_limit_entityreplaceprincipalRateLimitId, subdomain, principalId, principalTypeReplaces a principal rate limit entity by principalRateLimitId

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
filterstringFilters the list of principal rate limit entities by the provided principal type (principalType). For example, filter=principalType eq "SSWS_TOKEN" or filter=principalType eq "OAUTH_CLIENT".
principalRateLimitIdstringID of the principal rate limit
subdomainstring(default: my-org)
afterstringThe cursor to use for pagination. It's an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination.
limitinteger (int32)Specifies the number of items to return in a single response page.

SELECT examples​

Retrieves a principal rate limit entity by principalRateLimitId

SELECT
id,
createdBy,
createdDate,
defaultConcurrencyPercentage,
defaultPercentage,
lastUpdate,
lastUpdatedBy,
orgId,
principalId,
principalType
FROM okta.principal_rate_limits.principal_rate_limit_entities
WHERE principalRateLimitId = '{{ principalRateLimitId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

INSERT examples​

Creates a new principal rate limit entity. Okta only allows one principal rate limit entity per org and principal.

INSERT INTO okta.principal_rate_limits.principal_rate_limit_entities (
defaultConcurrencyPercentage,
defaultPercentage,
principalId,
principalType,
subdomain
)
SELECT
{{ defaultConcurrencyPercentage }},
{{ defaultPercentage }},
'{{ principalId }}' /* required */,
'{{ principalType }}' /* required */,
'{{ subdomain }}'
RETURNING
id,
createdBy,
createdDate,
defaultConcurrencyPercentage,
defaultPercentage,
lastUpdate,
lastUpdatedBy,
orgId,
principalId,
principalType
;

REPLACE examples​

Replaces a principal rate limit entity by principalRateLimitId

REPLACE okta.principal_rate_limits.principal_rate_limit_entities
SET
defaultConcurrencyPercentage = {{ defaultConcurrencyPercentage }},
defaultPercentage = {{ defaultPercentage }},
principalId = '{{ principalId }}',
principalType = '{{ principalType }}'
WHERE
principalRateLimitId = '{{ principalRateLimitId }}' --required
AND subdomain = '{{ subdomain }}' --required
AND principalId = '{{ principalId }}' --required
AND principalType = '{{ principalType }}' --required
RETURNING
id,
createdBy,
createdDate,
defaultConcurrencyPercentage,
defaultPercentage,
lastUpdate,
lastUpdatedBy,
orgId,
principalId,
principalType;