2021-01-12 20:14:31 +00:00
|
|
|
---
|
|
|
|
layout: commands
|
|
|
|
page_title: 'Commands: Intention List'
|
|
|
|
---
|
|
|
|
|
|
|
|
# Consul Intention List
|
|
|
|
|
|
|
|
Command: `consul intention list`
|
|
|
|
|
2022-01-11 13:26:58 +00:00
|
|
|
Corresponding HTTP API Endpoint: [\[GET\] /v1/connect/intentions](/api-docs/connect/intentions#list-intentions)
|
2022-01-10 17:40:11 +00:00
|
|
|
|
2021-01-12 20:14:31 +00:00
|
|
|
The `intention list` command shows all intentions including ID and precedence.
|
|
|
|
|
2022-09-14 22:45:42 +00:00
|
|
|
The table below shows this command's [required ACLs](/api-docs#authentication). Configuration of
|
2022-03-30 21:16:26 +00:00
|
|
|
[blocking queries](/api-docs/features/blocking) and [agent caching](/api-docs/features/caching)
|
2022-01-11 14:41:54 +00:00
|
|
|
are not supported from commands, but may be from the corresponding HTTP endpoint.
|
|
|
|
|
|
|
|
| ACL Required |
|
|
|
|
| ----------------------------- |
|
|
|
|
| `intentions:read`<sup>1</sup> |
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<sup>1</sup> Intention ACL rules are specified as part of a{' '}
|
|
|
|
<code>service</code> rule. See{' '}
|
|
|
|
<a href="/docs/connect/intentions#intention-management-permissions">
|
|
|
|
Intention Management Permissions
|
|
|
|
</a>{' '}
|
|
|
|
for more details.
|
|
|
|
</p>
|
|
|
|
|
2021-01-12 20:14:31 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
|
|
|
- `consul intention list`
|
|
|
|
|
|
|
|
#### Enterprise Options
|
|
|
|
|
|
|
|
@include 'http_api_namespace_options.mdx'
|
|
|
|
|
2022-07-27 06:17:11 +00:00
|
|
|
#### API Options
|
|
|
|
|
|
|
|
@include 'http_api_options_client.mdx'
|
|
|
|
|
2021-01-12 20:14:31 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
```shell-session
|
|
|
|
$ consul intention list
|
|
|
|
ID Source Action Destination Precedence
|
|
|
|
web allow db 9
|
|
|
|
36a6cf15-5f0e-a388-163e-0f608009704a dashboard allow counting 9
|
|
|
|
```
|