Cloud Administration Generate and Download Report APIs
4 months ago

Cloud Administration Generate and Download Report APIs

These APIs enable Helpdesk Administrators or Super Administrators to generate and download the available reports in the Cloud Administration Console.

For information about managing access to this API, see Accessing the Cloud Administration APIs.

Authentication

Clients calling these APIs must authenticate themselves by including a JSON Web Token in a request. For instructions on using this token, see Authentication for the Cloud Administration REST APIs.

Software Developer Kit

You can download the API Software Developer Kit (SDK) from Cloud Administration REST API Download.

Rate Limiting

Rate limiting is applied to these APIs to manage their usage and to restrict the request rate. Using these APIs, you can generate the reports only every 8 hours, and they can be downloaded only once every 15 minutes per tenant. If you breach any of these conditions, you will receive an HTTP status code of 429.

These APIs are composed of the following endpoints:

Generate Report

Request this endpoint to generate a report in the Cloud Administration Console. The report on this API is equivalent to the report that you can download from the Cloud Administration interface.

Request Requirements

Use the following information to generate each report:

Report TypeMethodRequest URLResponse Content TypeResponse BodyResponse Codes
usersPOST

POST/AdminInterface/restapi/v1/report

/users/generate

application/jsonempty payload201, 403, 404, 429
hardware_tokensPOST

POST/AdminInterface/restapi/v1/report

/hardware_tokens/generate

application/jsonempty payload201, 403, 404, 429
mfa_clientsPOST

POST/AdminInterface/restapi/v1/report

/mfa_clients/generate

application/jsonempty payload201, 403, 404, 429

Example Request/Response

The following table shows the response details:

MethodRequest URLRequest BodyResponse BodyResponse Codes
POST
POST/AdminInterface/restapi/v1/report/users/generate
empty payloadempty payload201, 429

Response Codes

The following table shows the response codes and descriptions for the API:

CodeDescription
201Request was fulfilled successfully.
403Not authorized to access this report.
403MFA tracking is turned off.
404Report not found. Not supported by API yet.
429Too many requests sent in a short period of time. Only one report can be generated every 8 hours.

Download Report

Request this endpoint to download a report in the Cloud Administration Console. This API enables you to download the reports every 15 minutes.

Request Requirements

Use the following information to download each report:

Report TypeMethodRequest URLResponse Content TypeResponse BodyResponse
Codes
usersGET

GET/AdminInterface/restapi
/v1/report/users/download

application/octet-streamMediaType.APPLICATION_OCTET_STREAM_VALUE ("application/octet-stream")200, 403, 404, 425,429
hardware_tokensGETGET/AdminInterface/restapi
/v1/report/hardware_tokens/download
application/octet-stream MediaType.APPLICATION_OCTET_STREAM_VALUE ("application/octet-stream")200, 403, 404, 425,429
mfa_clientsGET GET/AdminInterface/restapi
/v1/report/mfa_clients/download
application/octet-streamMediaType.APPLICATION_OCTET_STREAM_VALUE ("application/octet-stream")200, 403, 404, 425,429

 

Example Request/Response

The following table lists the response details:

MethodRequest URLResponse BodyResponse Codes
GET GET/AdminInterface/restapi/v1/report/users/download
all_users_report.csv in an octet-stream200, 425, 429

Response Codes

The following table shows response codes and descriptions for the API:

CodeDescription
200Report downloaded successfully.
403Not authorized to access this report.
403MFA tracking is turned off.
404Report not found. Report was not generated or does not exist.
425Report not generated yet.
429Too many requests sent in a short period of time. Report was already downloaded less than 15 minutes ago.

Generate and Download Report

Request this endpoint to generate and download the reports listed in this section. This API enables you to generate and download the reports every 8 hours.

Request Requirements

Use the following information to download each report:

Report TypeMethodRequest URLResponse Content TypeResponse BodyResponse
Codes
admin_usersGETGET/AdminInterface/restapi /v1/report/admin_users/generate-and-downloadtext/csv;charset=UTF-8UTF-8 encoded CSV file, downloaded as attachment200, 403, 404, 429
radius_clientsGETGET/AdminInterface/restapi /v1/report/radius_clients/generate-and-downloadtext/csv;charset=UTF-8UTF-8 encoded CSV file, downloaded as attachment200, 403, 404, 429

 

Example Request/Response

The following table lists the response details:

MethodRequest URLResponse BodyResponse Codes
GETGET/AdminInterface/restapi/v1/report/admin_users/generate-and-downloadadmin_users_report.csv200, 429
GETGET/AdminInterface/restapi/v1/report/radius_clients/generate-and-downloadradius_clients_report.csv200, 429

Response Codes

The following table shows response codes and descriptions for the API:

CodeDescription
200Report generated and downloaded successfully.
400Report does not exist.
403Not authorized to access this report.
429Too many requests sent in a short period of time. Report was already generated and downloaded less than 8 hours ago.