2021-01-12 20:14:31 +00:00
---
layout: commands
page_title: 'Commands: Intention List'
2023-01-26 18:42:13 +00:00
description: >-
2023-08-21 16:23:27 +00:00
The `consul intention list` command returns all L4 service intentions, including a unique ID and intention precedence. It was deprecated in Consul v1.9.0; use `consul config` instead.
2021-01-12 20:14:31 +00:00
---
# Consul Intention List
Command: `consul intention list`
2023-01-25 16:52:43 +00:00
Corresponding HTTP API Endpoint: [\[GET\] /v1/connect/intentions](/consul/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.
2023-01-25 16:52:43 +00:00
The table below shows this command's [required ACLs](/consul/api-docs/api-structure#authentication). Configuration of
[blocking queries](/consul/api-docs/features/blocking) and [agent caching](/consul/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 |
| ----------------------------- |
2023-03-24 22:16:06 +00:00
| `intentions:read` <p> Define intention rules in the `service` policy. Refer to [ACL requirements for intentions](/consul/docs/connect/intentions/create-manage-intentions#acl-requirements) for additional information.</p> |
2022-01-11 14:41:54 +00:00
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
```