getSecurityScansByIdWithHttpInfo method

Future<Response> getSecurityScansByIdWithHttpInfo(
  1. String id
)

Returns one scan together with every finding on it, so the detail view is one round-trip rather than a list call per scan.

Returns one scan together with every finding on it, so the detail view is one round-trip rather than a list call per scan. The findings carry masked previews and fingerprints, never secrets. Scoped to the caller's org: a scan id belonging to another org is the same 404 as an id that never existed, so a ruleset learns nothing about what exists elsewhere. No validated org is refused.

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID is the scan the URL names.

Implementation

Future<Response> getSecurityScansByIdWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/security/scans/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}