downloadComplianceReport method

Future<void> downloadComplianceReport(
  1. String reportId
)

Download a report

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

Parameters:

  • String reportId (required): Compliance report GUID

Implementation

Future<void> downloadComplianceReport(
  String reportId,
) async {
  final response = await downloadComplianceReportWithHttpInfo(
    reportId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}