All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
createPrincipalRateLimitEntity | POST /api/v1/principal-rate-limits | Create a Principal Rate Limit |
getPrincipalRateLimitEntity | GET /api/v1/principal-rate-limits/{principalRateLimitId} | Retrieve a Principal Rate Limit |
listPrincipalRateLimitEntities | GET /api/v1/principal-rate-limits | List all Principal Rate Limits |
updatePrincipalRateLimitEntity | PUT /api/v1/principal-rate-limits/{principalRateLimitId} | Replace a Principal Rate Limit |
PrincipalRateLimitEntity createPrincipalRateLimitEntity(entity)
Adds a new Principal Rate Limit entity to your organization. In the current release, we only allow one Principal Rate Limit entity per org and principal.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.PrincipalRateLimitApi(configuration);
let body:okta.PrincipalRateLimitApiCreatePrincipalRateLimitEntityRequest = {
// PrincipalRateLimitEntity
entity: {
principalId: "principalId_example",
principalType: "SSWS_TOKEN",
},
};
apiInstance.createPrincipalRateLimitEntity(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
entity | PrincipalRateLimitEntity |
PrincipalRateLimitEntity
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PrincipalRateLimitEntity getPrincipalRateLimitEntity()
Fetches a Principal Rate Limit entity by principalRateLimitId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.PrincipalRateLimitApi(configuration);
let body:okta.PrincipalRateLimitApiGetPrincipalRateLimitEntityRequest = {
// string | id of the Principal Rate Limit
principalRateLimitId: "abcd1234",
};
apiInstance.getPrincipalRateLimitEntity(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
principalRateLimitId | [string] | id of the Principal Rate Limit | defaults to undefined |
PrincipalRateLimitEntity
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array
listPrincipalRateLimitEntities()
Lists all Principal Rate Limit entities considering the provided parameters.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.PrincipalRateLimitApi(configuration);
let body:okta.PrincipalRateLimitApiListPrincipalRateLimitEntitiesRequest = {
// string (optional)
filter: "filter_example",
// string (optional)
after: "after_example",
// number (optional)
limit: 20,
};
apiInstance.listPrincipalRateLimitEntities(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
filter | [string] | (optional) defaults to undefined | |
after | [string] | (optional) defaults to undefined | |
limit | [number] | (optional) defaults to 20 |
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PrincipalRateLimitEntity updatePrincipalRateLimitEntity(entity)
Update a Principal Rate Limit entity by principalRateLimitId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.PrincipalRateLimitApi(configuration);
let body:okta.PrincipalRateLimitApiUpdatePrincipalRateLimitEntityRequest = {
// string | id of the Principal Rate Limit
principalRateLimitId: "abcd1234",
// PrincipalRateLimitEntity
entity: {
principalId: "principalId_example",
principalType: "SSWS_TOKEN",
},
};
apiInstance.updatePrincipalRateLimitEntity(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
entity | PrincipalRateLimitEntity | ||
principalRateLimitId | [string] | id of the Principal Rate Limit | defaults to undefined |
PrincipalRateLimitEntity
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 400 | Bad Request | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]