A newer release of this product is available.
Private protocols audit audit-log-redirect endpoint overview
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Overview
Use this API to specify a dedicated SVM for all NAS auditing events log to reside in.
Examples
Creating an Audit Log Redirect configuration.
To create an Audit Log Redirect configuration.
# The API: POST /api/private/protocols/audit/audit-log-redirect/ # The call: curl -X POST "https://<mgmt-ip>/api/private/protocols/audit/audit-log-redirect?return_timeout=5&return_records=false" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE=" -H "Content-Type: application/json" -d "{ \"svm\": { \"uuid\": \"02c9e252-41be-11e9-81d5-00a0986138f7\" }}" # The response: {}
Retrieving an Audit Log Redirect configuration in the cluster.
To retrieve an Audit Log Redirect configuration.
# The API: GET /api/private/protocols/audit/audit-log-redirect/ # The call: curl -X GET "https://<mgmt-ip>/api/private/protocols/audit/audit-log-redirect?return_records=true" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE=" # The response: { "svm": { "uuid": "24870c49-8a73-11ea-ad05-005056827898", "name": "vs2" } }
Updating Audit Log Redirect configuration in the cluster.
To modify an existing Audit Log Redirect configuration.
# The API: PATCH /api/private/protocols/audit/audit-log-redirect/ # The call: curl -X PATCH "https://<mgmt-ip>/api/private/protocols/audit/audit-log-redirect?return_records=true" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE=" -H "Content-Type: application/json" -d "{ \"svm\": { \"name\": \"svm1\", \"uuid\": \"02c9e252-41be-11e9-81d5-00a0986138f7\" }}"
Deleting an Audit Log Redirect configuration in the cluster.
To delete an existing Audit Log Redirect configuration.
# The API: DELETE /api/private/protocols/audit/audit-log-redirect/ # The call: curl -X DELETE "https://<mgmt-ip>/api/private/protocols/audit/audit-log-redirect" -H "accept: application/json" -H "authorization: Basic YWRtaW46bmV0YXBwMSE="