open-nomad/website/pages/docs/commands/scaling/policy-list.mdx
James Rasell 592c28c6ba
docs: add new scaling command website documentation. (#9143)
Co-authored-by: Chris Baker <1675087+cgbaker@users.noreply.github.com>
2020-10-27 07:15:11 +01:00

39 lines
867 B
Plaintext

---
layout: docs
page_title: 'Commands: scaling policy list'
sidebar_title: policy list
description: |
Display all Nomad scaling policies.
---
# Command: scaling policy list
List is used to list all scaling policies stored in Nomad.
## Usage
```plaintext
nomad scaling policy list [options]
```
## General Options
@include 'general_options.mdx'
## Policy List Options
- `-json` : Output the scaling policy list in its JSON format.
- `-t` : Format and display the scaling policy list using a Go template.
## Examples
List all tracked scaling policies:
```shell-session
$ nomad scaling policy list
ID Enabled Target
b2c64295-4315-2fdc-6158-a27156808729 true Namespace:default,Job:example,Group:cache,Task:redis
c355d0ec-7aa1-2604-449d-4ec79c813d2c true Namespace:default,Job:webapp,Group:demo,Task:webapp
```