downloadComplianceReportWithHttpInfo method

Future<Response> downloadComplianceReportWithHttpInfo(
  1. String reportId
)

Download a report

Download the full contents of a report as a file. ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

  • String reportId (required): Compliance report GUID

Implementation

Future<Response> downloadComplianceReportWithHttpInfo(
  String reportId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/compliance/reports/{report_id}/download'.replaceAll('{report_id}', reportId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  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,
  );
}