All URIs are relative to https://your-api-subdomain.onelogin.com
Method | HTTP request | Description |
---|---|---|
createRiskRule | POST /api/2/risk/rules | Create Rule |
deleteRiskRule | DELETE /api/2/risk/rules/{rule_id} | Delete Rule |
getRiskRule | GET /api/2/risk/rules/{rule_id} | get Risk Rule |
getRiskScore | POST /api/2/risk/verify | Get a Risk Score |
getRiskScores | GET /api/2/risk/scores | Get Score Summary |
listRiskRules | GET /api/2/risk/rules | List Rules |
trackRiskEvent | POST /api/2/risk/events | Track an Event |
updateRiskRule | PUT /api/2/risk/rules/{rule_id} | Update Rule |
RiskRule createRiskRule(riskRule)
Create Rule
Create Vigilance AI (Risk Service) Rule
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
RiskRule riskRule = new RiskRule(); // RiskRule |
try {
RiskRule result = apiInstance.createRiskRule(riskRule);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#createRiskRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
riskRule | RiskRule | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | CREATED | - |
400 | Bad Request | - |
401 | Unauthorized | - |
deleteRiskRule(ruleId)
Delete Rule
Delete Vigilance AI (Risk Service)
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
String ruleId = "ruleId_example"; // String |
try {
apiInstance.deleteRiskRule(ruleId);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#deleteRiskRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ruleId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | Successful response | - |
401 | Unauthorized | - |
RiskRule getRiskRule(ruleId)
get Risk Rule
Use this API to return a single rule that has been created in the Risk Sevice.
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
String ruleId = "ruleId_example"; // String |
try {
RiskRule result = apiInstance.getRiskRule(ruleId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#getRiskRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ruleId | String |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
401 | Unauthorized | - |
GetRiskScore200Response getRiskScore(getRiskScoreRequest, before, after)
Get a Risk Score
Get Vigilance AI (Risk Service) Score
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
GetRiskScoreRequest getRiskScoreRequest = new GetRiskScoreRequest(); // GetRiskScoreRequest |
String before = "before_example"; // String | Optional ISO8601 formatted date string. Defaults to current date. Maximum date is 90 days ago.
String after = "after_example"; // String | Optional ISO8601 formatted date string. Defaults to 30 days ago. Maximum date is 90 days ago.
try {
GetRiskScore200Response result = apiInstance.getRiskScore(getRiskScoreRequest, before, after);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#getRiskScore");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
getRiskScoreRequest | GetRiskScoreRequest | ||
before | String | Optional ISO8601 formatted date string. Defaults to current date. Maximum date is 90 days ago. | [optional] |
after | String | Optional ISO8601 formatted date string. Defaults to 30 days ago. Maximum date is 90 days ago. | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful response | - |
400 | Bad Request | - |
401 | Unauthorized | - |
GetRiskScores200Response getRiskScores()
Get Score Summary
Get Vigilance AI (Risk Service) Score Summary
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
try {
GetRiskScores200Response result = apiInstance.getRiskScores();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#getRiskScores");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
List<RiskRule> listRiskRules()
List Rules
List Vigilance AI (Risk Service) Rules
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
try {
List<RiskRule> result = apiInstance.listRiskRules();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#listRiskRules");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
trackRiskEvent(trackRiskEventRequest)
Track an Event
Track Vigilance AI (Risk Service) Event
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
TrackRiskEventRequest trackRiskEventRequest = new TrackRiskEventRequest(); // TrackRiskEventRequest |
try {
apiInstance.trackRiskEvent(trackRiskEventRequest);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#trackRiskEvent");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
trackRiskEventRequest | TrackRiskEventRequest |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | No content is returned. This API is fire and forget. | - |
400 | Bad Request | - |
401 | Unauthorized | - |
RiskRule updateRiskRule(ruleId, updateRiskRuleRequest)
Update Rule
Update Vigilance AI (Risk Service) Rule
// Import classes:
import com.onelogin.client.ApiClient;
import com.onelogin.client.ApiException;
import com.onelogin.client.Configuration;
import com.onelogin.client.auth.*;
import com.onelogin.client.models.*;
import com.onelogin.client.api.VigilanceAiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://your-api-subdomain.onelogin.com");
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
VigilanceAiApi apiInstance = new VigilanceAiApi(defaultClient);
String ruleId = "ruleId_example"; // String |
UpdateRiskRuleRequest updateRiskRuleRequest = new UpdateRiskRuleRequest(); // UpdateRiskRuleRequest |
try {
RiskRule result = apiInstance.updateRiskRule(ruleId, updateRiskRuleRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VigilanceAiApi#updateRiskRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ruleId | String | ||
updateRiskRuleRequest | UpdateRiskRuleRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
400 | Bad Request | - |
401 | Unauthorized | - |