Report upload

January 10, 2024

ID 199658

Allows you to upload a report generated before.

In the header of the Accept request, pass the data output format: Accept: application/csv.

The report can be uploaded in parts. You can specify the data range in the Range request header, for example:

Range: bytes=0-1023

In response to a request with this header, the REST API returns the 206 (Partial content) result and the first kilobyte of data. The response contains the Content-Range and Content-Length headers.

For example:

Content-Range: bytes=0-1023/123456

Content-Length: 1024

Method:

GET /api/2.0/virtualization/reports/tenants/{report ID}

where:

{report ID} – report identifier obtained as a result of successful completion of the CreateTenantReport task (required parameter).

Return codes:

  • 200 (OK) – request completed successfully. The response returns the report data in the format specified in the Accept header.
  • 206 (Partial content) – request completed successfully. The response returns the part of the report specified by the Range heading.
  • 403 (Forbidden) – access to the resource is denied.
  • 404 (Not Found) – report with the specified identifier is not found.
  • 415 (Unsupported Media Type) – unsupported format of the requested data (incorrect format was passed in the Accept request header).

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.