vault/website/source/docs/http/sys-audit.html.md
2015-04-18 22:39:43 -07:00

1.6 KiB

layout page_title sidebar_current description
http HTTP API: /sys/audit docs-http-audits-audits The `/sys/audit` endpoint is used to enable and disable audit backends.

/sys/audit

GET

Description
Lists all the available policies.
<dt>Method</dt>
<dd>GET</dd>

<dt>Parameters</dt>
<dd>
	None
</dd>

<dt>Returns</dt>
<dd>
{
	"file": {
		"type: "file",
		"description: "Store logs in a file",
		"options": {
			"path": "/var/log/file"
		}
	}
}
</dd>

PUT

Description
Enable an audit backend.
<dt>Method</dt>
<dd>PUT</dd>

<dt>URL</dt>
<dd>`/sys/audit/<name>`</dd>

<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>

DELETE

Description
Disable the given audit backend.
<dt>Method</dt>
<dd>DELETE</dd>

<dt>URL</dt>
<dd>`/sys/audit/<name>`</dd>

<dt>Parameters</dt>
<dd>None
</dd>

<dt>Returns</dt>
<dd>`204` response code.
</dd>