2015-04-19 05:39:43 +00:00
|
|
|
---
|
|
|
|
layout: "http"
|
|
|
|
page_title: "HTTP API: /sys/audit"
|
|
|
|
sidebar_current: "docs-http-audits-audits"
|
|
|
|
description: |-
|
|
|
|
The `/sys/audit` endpoint is used to enable and disable audit backends.
|
|
|
|
---
|
|
|
|
|
|
|
|
# /sys/audit
|
|
|
|
|
|
|
|
## GET
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
2016-01-12 00:08:23 +00:00
|
|
|
List the mounted audit backends.
|
2015-04-22 23:47:11 +00:00
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>GET</dd>
|
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
None
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
"file": {
|
|
|
|
"type: "file",
|
|
|
|
"description: "Store logs in a file",
|
|
|
|
"options": {
|
|
|
|
"path": "/var/log/file"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
</dl>
|
|
|
|
|
|
|
|
## PUT
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Enable an audit backend.
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>PUT</dd>
|
|
|
|
|
|
|
|
<dt>URL</dt>
|
2016-03-14 22:33:51 +00:00
|
|
|
<dd>`/sys/audit/<path>`</dd>
|
2015-04-22 23:47:11 +00:00
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span class="param">type</span>
|
|
|
|
<span class="param-flags">required</span>
|
|
|
|
The type of the audit backend.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span class="param">description</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
A description of the audit backend for operators.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span class="param">options</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
An object of options to configure the backend. This is
|
|
|
|
dependent on the backend type. Please consult the documentation
|
|
|
|
for the backend type you intend to use.
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>`204` response code.
|
|
|
|
</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
</dl>
|
|
|
|
|
|
|
|
## DELETE
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Disable the given audit backend.
|
|
|
|
</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>DELETE</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>URL</dt>
|
2016-03-14 22:33:51 +00:00
|
|
|
<dd>`/sys/audit/<path>`</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>None
|
|
|
|
</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>`204` response code.
|
|
|
|
</dd>
|
2015-04-19 05:39:43 +00:00
|
|
|
</dl>
|