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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_principal_rate_limit_entitiesselectfilter, subdomainafter, limitLists all Principal Rate Limit entities considering the provided parameters
get_principal_rate_limit_entityselectsubdomainRetrieves a principal rate limit entity by principalRateLimitId
create_principal_rate_limit_entityinsertsubdomain, data__principalId, data__principalTypeCreates a new principal rate limit entity. Okta only allows one principal rate limit entity per org and principal.
replace_principal_rate_limit_entityreplacesubdomain, data__principalId, data__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".
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)
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

Lists all Principal Rate Limit entities considering the provided parameters

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

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 (
data__defaultConcurrencyPercentage,
data__defaultPercentage,
data__principalId,
data__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
data__defaultConcurrencyPercentage = {{ defaultConcurrencyPercentage }},
data__defaultPercentage = {{ defaultPercentage }},
data__principalId = '{{ principalId }}',
data__principalType = '{{ principalType }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND data__principalId = '{{ principalId }}' --required
AND data__principalType = '{{ principalType }}' --required
RETURNING
id,
createdBy,
createdDate,
defaultConcurrencyPercentage,
defaultPercentage,
lastUpdate,
lastUpdatedBy,
orgId,
principalId,
principalType;