getSecurityFindingsWithHttpInfo method

Future<Response> getSecurityFindingsWithHttpInfo({
  1. String? scanId,
  2. String? minSeverity,
  3. int? limit,
})

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:

  • String scanId: ScanID narrows to a single scan.

  • String minSeverity: MinSeverity drops everything below that rank: critical, high, medium or low. A value outside that set is refused rather than quietly ignored, so a filter typo cannot read as "no findings".

  • int limit: Limit caps the page.

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,
  );
}