All URIs are relative to https://subdomain.okta.com
Method | HTTP request | Description |
---|---|---|
GetCurrentConfiguration | GET /api/v1/threats/configuration | Retrieve the ThreatInsight Configuration |
UpdateConfiguration | POST /api/v1/threats/configuration | Update the ThreatInsight Configuration |
ThreatInsightConfiguration GetCurrentConfiguration ()
Retrieve the ThreatInsight Configuration
Retrieves the ThreatInsight configuration for the org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class GetCurrentConfigurationExample
{
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 ThreatInsightApi(config);
try
{
// Retrieve the ThreatInsight Configuration
ThreatInsightConfiguration result = apiInstance.GetCurrentConfiguration();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ThreatInsightApi.GetCurrentConfiguration: " + 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 | Success | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThreatInsightConfiguration UpdateConfiguration (ThreatInsightConfiguration threatInsightConfiguration)
Update the ThreatInsight Configuration
Updates the ThreatInsight configuration for the org
using System.Collections.Generic;
using System.Diagnostics;
using Okta.Sdk.Api;
using Okta.Sdk.Client;
using Okta.Sdk.Model;
namespace Example
{
public class UpdateConfigurationExample
{
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 ThreatInsightApi(config);
var threatInsightConfiguration = new ThreatInsightConfiguration(); // ThreatInsightConfiguration |
try
{
// Update the ThreatInsight Configuration
ThreatInsightConfiguration result = apiInstance.UpdateConfiguration(threatInsightConfiguration);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ThreatInsightApi.UpdateConfiguration: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
threatInsightConfiguration | ThreatInsightConfiguration |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too Many Requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]