2017-10-13 20:45:10 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: acl policy list"
|
|
|
|
sidebar_current: "docs-commands-acl-policy-list"
|
|
|
|
description: >
|
|
|
|
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
|
|
|
|
|
|
|
|
```
|
|
|
|
nomad acl policy list
|
|
|
|
```
|
|
|
|
|
|
|
|
## General Options
|
|
|
|
|
|
|
|
<%= partial "docs/commands/_general_options" %>
|
2017-10-13 23:37:33 +00:00
|
|
|
#
|
|
|
|
## List Options
|
|
|
|
|
2019-04-12 15:48:36 +00:00
|
|
|
* `-json` : Output the policies in their JSON format.
|
2017-10-13 23:37:33 +00:00
|
|
|
|
2019-04-12 15:48:36 +00:00
|
|
|
* `-t` : Format and display the policies using a Go template.
|
2017-10-13 20:45:10 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
List all ACL policies:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ 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
|
|
|
```
|