Skip to main content
REST API reference

View and update audit settings

Manage what is logged to the audit log files using this API. All operations that make changes are logged permanently, while you can update audit settings for GET requests using the PATCH method. Retrieve the current settings with a GET request.

Overview

This API controls what is logged to the audit log files. All operations that make changes are always logged and cannot be disabled. The PATCH request updates administrative audit settings for GET requests. All fields are optional for a PATCH request. A GET request retrieves administrative audit settings for GET requests.


Examples

Retrieving administrative audit settings for GET requests

The following example shows the administrative audit settings for GET requests.


# The API:
/api/security/audit

# The call:
curl -X GET "https://<cluster-ip>/api/security/audit"

# The response:
{
"cli": false,
"http": false,
"ontapi": false,
"_links": {
    "self": {
        "href": "/api/security/audit"
    }
}
}

Updating administrative audit settings for GET requests

The following example updates the administrative audit settings for GET requests


# The API:
/api/security/audit

# The call:
curl -X PATCH "https://<cluster-ip>/api/security/audit" -d '{"cli":"false", "http": "true", "ontapi": "true"}'