2016-03-05 05:54:48 +00:00
|
|
|
---
|
|
|
|
layout: "http"
|
|
|
|
page_title: "HTTP API: /sys/capabilities-self"
|
|
|
|
sidebar_current: "docs-http-auth-capabilities-self"
|
|
|
|
description: |-
|
|
|
|
The `/sys/capabilities-self` endpoint is used to fetch the capabilities of client token on a given path.
|
|
|
|
---
|
|
|
|
|
|
|
|
# /sys/capabilities-self
|
|
|
|
|
|
|
|
## POST
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Returns the capabilities of client token on the given path.
|
|
|
|
Client token is the Vault token with which this API call is made.
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>POST</dd>
|
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span class="param">path</span>
|
|
|
|
<span class="param-flags">required</span>
|
2016-03-07 23:36:26 +00:00
|
|
|
Path on which the client token's capabilities will be checked.
|
2016-03-05 05:54:48 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
|
|
|
|
|
|
|
```javascript
|
2016-03-07 23:36:26 +00:00
|
|
|
{
|
|
|
|
"capabilities": ["read", "list"]
|
|
|
|
}
|
2016-03-05 05:54:48 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
</dl>
|