consul/website/content/commands/intention/list.mdx

36 lines
771 B
Plaintext

---
layout: commands
page_title: 'Commands: Intention List'
---
# Consul Intention List
Command: `consul intention list`
Corresponding HTTP API Endpoint: [\[GET\] /v1/connect/intentions](/api-docs/connect/intentions#list-intentions)
The `intention list` command shows all intentions including ID and precedence.
## Usage
Usage:
- `consul intention list`
#### API Options
@include 'http_api_options_client.mdx'
#### Enterprise Options
@include 'http_api_namespace_options.mdx'
## Examples
```shell-session
$ consul intention list
ID Source Action Destination Precedence
web allow db 9
36a6cf15-5f0e-a388-163e-0f608009704a dashboard allow counting 9
```