Downloads Audit Logs

get

/rest/{versionId}/security/audit-logs

Use this (GET) Method to download the audit logs.

Request

Path Parameters
Back to Top

Response

200 Response

Audit logs retrieved successfully.

400 Response

The user input is invalid.

401 Response

The user is unauthorized.

403 Response

The user does not have permission.

404 Response

The object (resource URI, IAM-info, etc) of your request cannot be found.

500 Response

An internal server error has occurred while processing the request.
Back to Top

Examples

Examples of Accessing the API

See Authenticate page to acquire a token.

The following example shows how to use curl to downloads Audit Logs.

curl -OJ -X GET \
    -H @auth_header.txt \
    "https://<tenant-url>/<tenant-name>/osdmc/ums/rest/<versionId>/security/audit-logs"

The following example shows how to use Python to downloads Audit Logs.

import requests
headers = { "Authorization": "Bearer <auth-token>" }
url  = "https://<tenant-url>/<tenant-name>/osdmc/ums/rest/<versionId>/security/audit-logs"
resp = requests.get(url, headers=headers)

Example of the Response Body

This endpoint does not return a response body.

Back to Top