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 |
ReplaceBehaviorDetectionRule | PUT /api/v1/behaviors/{behaviorId} | Replace a Behavior Detection Rule |
BehaviorRule ActivateBehaviorDetectionRule (string behaviorId)
Activate a Behavior Detection Rule
Activates a behavior detection rule
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ActivateBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var behaviorId = abcd1234; // string | id of the Behavior Detection Rule
try
{
// Activate a Behavior Detection Rule
BehaviorRule result = apiInstance.ActivateBehaviorDetectionRule(behaviorId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.ActivateBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | string | id of the Behavior Detection Rule |
- Content-Type: Not defined
- Accept: application/json
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 (BehaviorRule rule)
Create a Behavior Detection Rule
Creates a new behavior detection rule
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class CreateBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var rule = new BehaviorRule(); // BehaviorRule |
try
{
// Create a Behavior Detection Rule
BehaviorRule result = apiInstance.CreateBehaviorDetectionRule(rule);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.CreateBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
rule | BehaviorRule |
- Content-Type: application/json
- Accept: application/json
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 (string behaviorId)
Deactivate a Behavior Detection Rule
Deactivates a behavior detection rule
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeactivateBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var behaviorId = abcd1234; // string | id of the Behavior Detection Rule
try
{
// Deactivate a Behavior Detection Rule
BehaviorRule result = apiInstance.DeactivateBehaviorDetectionRule(behaviorId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.DeactivateBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | string | id of the Behavior Detection Rule |
- Content-Type: Not defined
- Accept: application/json
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 (string behaviorId)
Delete a Behavior Detection Rule
Deletes a Behavior Detection Rule by behaviorId
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class DeleteBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var behaviorId = abcd1234; // string | id of the Behavior Detection Rule
try
{
// Delete a Behavior Detection Rule
apiInstance.DeleteBehaviorDetectionRule(behaviorId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.DeleteBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | string | id of the Behavior Detection Rule |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
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 (string behaviorId)
Retrieve a Behavior Detection Rule
Retrieves a Behavior Detection Rule by behaviorId
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var behaviorId = abcd1234; // string | id of the Behavior Detection Rule
try
{
// Retrieve a Behavior Detection Rule
BehaviorRule result = apiInstance.GetBehaviorDetectionRule(behaviorId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.GetBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | string | id of the Behavior Detection Rule |
- Content-Type: Not defined
- Accept: application/json
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]
List<BehaviorRule> ListBehaviorDetectionRules ()
List all Behavior Detection Rules
Lists all behavior detection rules with pagination support
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ListBehaviorDetectionRulesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
try
{
// List all Behavior Detection Rules
List<BehaviorRule> result = apiInstance.ListBehaviorDetectionRules().ToListAsync();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.ListBehaviorDetectionRules: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
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 ReplaceBehaviorDetectionRule (string behaviorId, BehaviorRule rule)
Replace a Behavior Detection Rule
Replaces a Behavior Detection Rule by behaviorId
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class ReplaceBehaviorDetectionRuleExample
{
public static void Main()
{
Configuration config = new Configuration();
config.OktaDomain = "https://subdomain.okta.com";
// Configure API key authorization: apiToken
config.Token ="YOUR_API_KEY";
// Configure OAuth2 access token for authorization: oauth2
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new BehaviorApi(config);
var behaviorId = abcd1234; // string | id of the Behavior Detection Rule
var rule = new BehaviorRule(); // BehaviorRule |
try
{
// Replace a Behavior Detection Rule
BehaviorRule result = apiInstance.ReplaceBehaviorDetectionRule(behaviorId, rule);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BehaviorApi.ReplaceBehaviorDetectionRule: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
behaviorId | string | id of the Behavior Detection Rule | |
rule | BehaviorRule |
- Content-Type: application/json
- Accept: application/json
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]