-
Notifications
You must be signed in to change notification settings - Fork 1
CountermeasuresApi
All URIs are relative to https://demo.iriusrisk.com/api/v1
Method | HTTP request | Description |
---|---|---|
librariesLibraryRefRiskpatternsRiskPatternRefCountermeasuresPost | POST /libraries/{libraryRef}/riskpatterns/{riskPatternRef}/countermeasures | Creates new countermeasure in a risk pattern |
librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefCountermeasuresPut | PUT /libraries/{libraryRef}/riskpatterns/{riskPatternRef}/usecases/{useCaseRef}/threats/{threatRef}/countermeasures | Associates a countermeasure to a threat in a risk pattern. |
librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefWeaknessesWeaknessRefCountermeasuresPut | PUT /libraries/{libraryRef}/riskpatterns/{riskPatternRef}/usecases/{useCaseRef}/threats/{threatRef}/weaknesses/{weaknessRef}/countermeasures | Associates a countermeasure to a weakness in a risk pattern. |
LibraryControl librariesLibraryRefRiskpatternsRiskPatternRefCountermeasuresPost(apiToken, libraryRef, riskPatternRef, createCountermeasureLibraryRequestBody)
Creates new countermeasure in a risk pattern
Creates new countermeasure in a risk pattern. Conditions to be able to perform the action: - To have the permission LIBRARY_UPDATE granted.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.CountermeasuresApi;
CountermeasuresApi apiInstance = new CountermeasuresApi();
String apiToken = "apiToken_example"; // String | Authentication token
String libraryRef = "libraryRef_example"; // String | Reference for library
String riskPatternRef = "riskPatternRef_example"; // String | Reference for Risk Pattern
ControlCommand createCountermeasureLibraryRequestBody = new ControlCommand(); // ControlCommand | JSON data that contains information of the fields
try {
LibraryControl result = apiInstance.librariesLibraryRefRiskpatternsRiskPatternRefCountermeasuresPost(apiToken, libraryRef, riskPatternRef, createCountermeasureLibraryRequestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CountermeasuresApi#librariesLibraryRefRiskpatternsRiskPatternRefCountermeasuresPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiToken | String | Authentication token | |
libraryRef | String | Reference for library | |
riskPatternRef | String | Reference for Risk Pattern | |
createCountermeasureLibraryRequestBody | ControlCommand | JSON data that contains information of the fields |
No authorization required
- Content-Type: application/json
- Accept: application/json
LibraryControl librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefCountermeasuresPut(apiToken, libraryRef, riskPatternRef, useCaseRef, threatRef, associateCountermeasureThreatLibraryRequestBody)
Associates a countermeasure to a threat in a risk pattern.
Associates a countermeasure to a threat in a risk pattern. Conditions to be able to perform the action: - To have the permission LIBRARY_UPDATE granted.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.CountermeasuresApi;
CountermeasuresApi apiInstance = new CountermeasuresApi();
String apiToken = "apiToken_example"; // String | Authentication token
String libraryRef = "libraryRef_example"; // String | Reference for library
String riskPatternRef = "riskPatternRef_example"; // String | Reference for Risk Pattern
String useCaseRef = "useCaseRef_example"; // String | Reference for Use Case
String threatRef = "threatRef_example"; // String | Reference for Threat
AssociateCountermeasureThreatLibraryRequestBody associateCountermeasureThreatLibraryRequestBody = new AssociateCountermeasureThreatLibraryRequestBody(); // AssociateCountermeasureThreatLibraryRequestBody | JSON data that contains information of the fields
try {
LibraryControl result = apiInstance.librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefCountermeasuresPut(apiToken, libraryRef, riskPatternRef, useCaseRef, threatRef, associateCountermeasureThreatLibraryRequestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CountermeasuresApi#librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefCountermeasuresPut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiToken | String | Authentication token | |
libraryRef | String | Reference for library | |
riskPatternRef | String | Reference for Risk Pattern | |
useCaseRef | String | Reference for Use Case | |
threatRef | String | Reference for Threat | |
associateCountermeasureThreatLibraryRequestBody | AssociateCountermeasureThreatLibraryRequestBody | JSON data that contains information of the fields |
No authorization required
- Content-Type: application/json
- Accept: application/json
librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefWeaknessesWeaknessRefCountermeasuresPut
LibraryControl librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefWeaknessesWeaknessRefCountermeasuresPut(apiToken, libraryRef, riskPatternRef, useCaseRef, threatRef, weaknessRef, associateCountermeasureWeaknessLibraryRequestBody)
Associates a countermeasure to a weakness in a risk pattern.
Associates a countermeasure to a weakness in a risk pattern. Conditions to be able to perform the action: - To have the permission LIBRARY_UPDATE granted.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.CountermeasuresApi;
CountermeasuresApi apiInstance = new CountermeasuresApi();
String apiToken = "apiToken_example"; // String | Authentication token
String libraryRef = "libraryRef_example"; // String | Reference for library
String riskPatternRef = "riskPatternRef_example"; // String | Reference for Risk Pattern
String useCaseRef = "useCaseRef_example"; // String | Reference for Use Case
String threatRef = "threatRef_example"; // String | Reference for Threat
String weaknessRef = "weaknessRef_example"; // String | Reference for Weakness
AssociateCountermeasureWeaknessLibraryRequestBody associateCountermeasureWeaknessLibraryRequestBody = new AssociateCountermeasureWeaknessLibraryRequestBody(); // AssociateCountermeasureWeaknessLibraryRequestBody | JSON data that contains information of the fields
try {
LibraryControl result = apiInstance.librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefWeaknessesWeaknessRefCountermeasuresPut(apiToken, libraryRef, riskPatternRef, useCaseRef, threatRef, weaknessRef, associateCountermeasureWeaknessLibraryRequestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CountermeasuresApi#librariesLibraryRefRiskpatternsRiskPatternRefUsecasesUseCaseRefThreatsThreatRefWeaknessesWeaknessRefCountermeasuresPut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
apiToken | String | Authentication token | |
libraryRef | String | Reference for library | |
riskPatternRef | String | Reference for Risk Pattern | |
useCaseRef | String | Reference for Use Case | |
threatRef | String | Reference for Threat | |
weaknessRef | String | Reference for Weakness | |
associateCountermeasureWeaknessLibraryRequestBody | AssociateCountermeasureWeaknessLibraryRequestBody | JSON data that contains information of the fields |
No authorization required
- Content-Type: application/json
- Accept: application/json