getSecurityFindingsWithHttpInfo method
Is the org's findings — rule, severity, path, line, masked preview and fingerprint — newest first, across scans or within one.
Is the org's findings — rule, severity, path, line, masked preview and fingerprint — newest first, across scans or within one. A minSeverity outside critical|high|medium|low is refused rather than quietly ignored, so a filter typo cannot read as "no findings". Strictly org-scoped, and a caller with no validated org is refused.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getSecurityFindingsWithHttpInfo({ String? scanId, String? minSeverity, int? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/security/findings';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (scanId != null) {
queryParams.addAll(_queryParams('', 'scanId', scanId));
}
if (minSeverity != null) {
queryParams.addAll(_queryParams('', 'minSeverity', minSeverity));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}