All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
createRiskProvider | POST /api/v1/risk/providers | Create a Risk Provider |
deleteRiskProvider | DELETE /api/v1/risk/providers/{riskProviderId} | Delete a Risk Provider |
getRiskProvider | GET /api/v1/risk/providers/{riskProviderId} | Retrieve a Risk Provider |
listRiskProviders | GET /api/v1/risk/providers | List all Risk Providers |
updateRiskProvider | PUT /api/v1/risk/providers/{riskProviderId} | Replace a Risk Provider |
RiskProvider createRiskProvider(instance)
Creates a risk provider. A maximum of 3 providers can be created. By default, one risk provider is created by Okta.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.RiskProviderApi(configuration);
let body:okta.RiskProviderApiCreateRiskProviderRequest = {
// RiskProvider
instance: {
action: "log_only",
clientId: "clientId_example",
name: "name_example",
},
};
apiInstance.createRiskProvider(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | RiskProvider |
RiskProvider
| Status code | Description | Response headers | |————-|————-|——————| 201 | Created | - | 400 | Bad Request | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteRiskProvider()
Delete a CAPTCHA instance by riskProviderId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.RiskProviderApi(configuration);
let body:okta.RiskProviderApiDeleteRiskProviderRequest = {
// string | `id` of the risk provider
riskProviderId: "00rp12r4skkjkjgsn",
};
apiInstance.deleteRiskProvider(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
riskProviderId | [string] | `id` of the risk provider | defaults to undefined |
void
| Status code | Description | Response headers | |————-|————-|——————| 204 | No Content | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RiskProvider getRiskProvider()
Retrieves a risk provider by riskProviderId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.RiskProviderApi(configuration);
let body:okta.RiskProviderApiGetRiskProviderRequest = {
// string | `id` of the risk provider
riskProviderId: "00rp12r4skkjkjgsn",
};
apiInstance.getRiskProvider(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
riskProviderId | [string] | `id` of the risk provider | defaults to undefined |
RiskProvider
| 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
listRiskProviders()
Lists all Risk Providers
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.RiskProviderApi(configuration);
let body:any = {};
apiInstance.listRiskProviders(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
This endpoint does not need any parameter.
**Array
| Status code | Description | Response headers | |————-|————-|——————| 200 | OK | - | 403 | Forbidden | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RiskProvider updateRiskProvider(instance)
Replaces a risk provider by riskProviderId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.RiskProviderApi(configuration);
let body:okta.RiskProviderApiUpdateRiskProviderRequest = {
// string | `id` of the risk provider
riskProviderId: "00rp12r4skkjkjgsn",
// RiskProvider
instance: {
action: "log_only",
clientId: "clientId_example",
name: "name_example",
},
};
apiInstance.updateRiskProvider(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
instance | RiskProvider | ||
riskProviderId | [string] | `id` of the risk provider | defaults to undefined |
RiskProvider
| 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]