All URIs are relative to https://SSC:8080/ssc/api/v1
Method | HTTP request | Description |
---|---|---|
listScanErrorOfArtifact | GET /artifacts/{parentId}/scanerrors | list |
ApiResultListscanError listScanErrorOfArtifact(parentId, fields, start, limit)
list
// Import classes:
//import com.fortify.ssc.restclient.ApiClient;
//import com.fortify.ssc.restclient.ApiException;
//import com.fortify.ssc.restclient.Configuration;
//import com.fortify.ssc.restclient.auth.*;
//import com.fortify.ssc.restclient.api.ScanErrorOfArtifactControllerApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: FortifyToken
ApiKeyAuth FortifyToken = (ApiKeyAuth) defaultClient.getAuthentication("FortifyToken");
FortifyToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//FortifyToken.setApiKeyPrefix("Token");
ScanErrorOfArtifactControllerApi apiInstance = new ScanErrorOfArtifactControllerApi();
Long parentId = 789L; // Long | parentId
String fields = "fields_example"; // String | Output fields
Integer start = 0; // Integer | A start offset in object listing
Integer limit = 200; // Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied
try {
ApiResultListscanError result = apiInstance.listScanErrorOfArtifact(parentId, fields, start, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ScanErrorOfArtifactControllerApi#listScanErrorOfArtifact");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
parentId | Long | parentId | |
fields | String | Output fields | [optional] |
start | Integer | A start offset in object listing | [optional] [default to 0] |
limit | Integer | A maximum number of returned objects in listing, if '-1' or '0' no limit is applied | [optional] [default to 200] |
- Content-Type: application/json
- Accept: application/json