2017-10-13 20:45:10 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: acl policy list'
|
|
|
|
description: |
|
2017-10-13 20:45:10 +00:00
|
|
|
The policy list command is used to list available ACL policies.
|
|
|
|
---
|
|
|
|
|
2019-04-12 15:48:36 +00:00
|
|
|
# Command: acl policy list
|
2017-10-13 20:45:10 +00:00
|
|
|
|
|
|
|
The `acl policy list` command is used to list available ACL policies.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2017-10-13 20:45:10 +00:00
|
|
|
nomad acl policy list
|
|
|
|
```
|
|
|
|
|
2020-11-19 21:38:08 +00:00
|
|
|
This command requires a management ACL token to view all policies. A
|
|
|
|
non-management token can query its own policies.
|
|
|
|
|
2017-10-13 20:45:10 +00:00
|
|
|
## General Options
|
|
|
|
|
2020-11-19 18:02:48 +00:00
|
|
|
@include 'general_options_no_namespace.mdx'
|
2017-10-13 23:37:33 +00:00
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
## List Options
|
2017-10-13 23:37:33 +00:00
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
- `-json` : Output the policies in their JSON format.
|
|
|
|
- `-t` : Format and display the policies using a Go template.
|
2017-10-13 20:45:10 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
List all ACL policies:
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad acl policy list
|
2019-04-12 15:48:36 +00:00
|
|
|
Name Description
|
|
|
|
policy-1 The first policy
|
|
|
|
policy-2 The second policy
|
2017-10-13 20:45:10 +00:00
|
|
|
```
|