跳到主要内容

getTenantQuotaReport

DocumentBuilderTaskWrapper getTenantQuotaReport()

GET /api/2.0/settings/docscloud/tenant/quota/report

Get the Docs Connect quota report status

Returns the state of the Docs Connect user quota report that the current user started with POST api/2.0/settings/docscloud/tenant/quota/report, so that the caller can follow the generation and pick up the resulting file. It reports the caller's own job only: a report started by another administrator is not visible here, and an empty result means this user has no job, because none was started, because it was terminated, or because a finished one has already been cleared (a job state is kept for a day, and starting a new report drops the previous finished one); that is a normal state and not an error. The caller must be a portal administrator allowed to edit the portal settings. The call is read-only and idempotent, and it is meant to be polled while the job runs. In the result, percentage goes from 0 to 100 and isCompleted becomes true both on success and on failure, so check error: it is empty when the report was built and carries the failure message otherwise; resultFileId, resultFileName and resultFileUrl are filled in only once the file exists, and that file also stays in the My documents folder of the caller. Use the POST operation on this path to start a report and the DELETE one to cancel it.

Parameters​

This endpoint does not need any parameter.

Responses​

Status codeDescriptionTypeResponse headers
200The state of the Docs Connect quota report job of the caller, or an empty result if there is no such jobDocumentBuilderTaskWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
403The caller has no portal-settings right--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

DocumentBuilderTaskWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json