All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
activateBehaviorDetectionRule | POST /api/v1/behaviors/{behaviorId}/lifecycle/activate | Activate a Behavior Detection Rule |
createBehaviorDetectionRule | POST /api/v1/behaviors | Create a Behavior Detection Rule |
deactivateBehaviorDetectionRule | POST /api/v1/behaviors/{behaviorId}/lifecycle/deactivate | Deactivate a Behavior Detection Rule |
deleteBehaviorDetectionRule | DELETE /api/v1/behaviors/{behaviorId} | Delete a Behavior Detection Rule |
getBehaviorDetectionRule | GET /api/v1/behaviors/{behaviorId} | Retrieve a Behavior Detection Rule |
listBehaviorDetectionRules | GET /api/v1/behaviors | List all Behavior Detection Rules |
updateBehaviorDetectionRule | PUT /api/v1/behaviors/{behaviorId} | Replace a Behavior Detection Rule |
BehaviorRule activateBehaviorDetectionRule()
Activate Behavior Detection Rule
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiActivateBehaviorDetectionRuleRequest = {
// string | id of the Behavior Detection Rule
behaviorId: "abcd1234",
};
apiInstance.activateBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | [string] | id of the Behavior Detection Rule | defaults to undefined |
BehaviorRule
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BehaviorRule createBehaviorDetectionRule(rule)
Adds a new Behavior Detection Rule to your organization.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiCreateBehaviorDetectionRuleRequest = {
// BehaviorRule
rule: {},
};
apiInstance.createBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
rule | BehaviorRule |
BehaviorRule
| 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]
BehaviorRule deactivateBehaviorDetectionRule()
Deactivate Behavior Detection Rule
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiDeactivateBehaviorDetectionRuleRequest = {
// string | id of the Behavior Detection Rule
behaviorId: "abcd1234",
};
apiInstance.deactivateBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | [string] | id of the Behavior Detection Rule | defaults to undefined |
BehaviorRule
| Status code | Description | Response headers | |————-|————-|——————| 200 | Success | - | 403 | Forbidden | - | 404 | Not Found | - | 429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void deleteBehaviorDetectionRule()
Delete a Behavior Detection Rule by behaviorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiDeleteBehaviorDetectionRuleRequest = {
// string | id of the Behavior Detection Rule
behaviorId: "abcd1234",
};
apiInstance.deleteBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | [string] | id of the Behavior Detection Rule | 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]
BehaviorRule getBehaviorDetectionRule()
Fetches a Behavior Detection Rule by behaviorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiGetBehaviorDetectionRuleRequest = {
// string | id of the Behavior Detection Rule
behaviorId: "abcd1234",
};
apiInstance.getBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | [string] | id of the Behavior Detection Rule | defaults to undefined |
BehaviorRule
| 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
listBehaviorDetectionRules()
Enumerates Behavior Detection Rules in your organization with pagination.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:any = {};
apiInstance.listBehaviorDetectionRules(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]
BehaviorRule updateBehaviorDetectionRule(rule)
Update a Behavior Detection Rule by behaviorId
.
import { okta } from '@okta/okta-sdk-nodejs';
import * as fs from 'fs';
const configuration = okta.createConfiguration();
const apiInstance = new okta.BehaviorApi(configuration);
let body:okta.BehaviorApiUpdateBehaviorDetectionRuleRequest = {
// string | id of the Behavior Detection Rule
behaviorId: "abcd1234",
// BehaviorRule
rule: {},
};
apiInstance.updateBehaviorDetectionRule(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
Name | Type | Description | Notes |
---|---|---|---|
rule | BehaviorRule | ||
behaviorId | [string] | id of the Behavior Detection Rule | defaults to undefined |
BehaviorRule
| Status code | Description | Response headers | |————-|————-|——————| 200 | 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]