mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
* sectionless files plus acl section * alloc section * config, deployment sections * job section * licence, namespace * node, node-pool * operator * plugin, quota, recommendation * scaling, sentinel, server, service, system, var, volume * Add "ENT" label to left nav for enterprise commands * job tag break into separate folder and files; update options header
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'nomad scaling policy list command reference'
|
|
description: |
|
|
The `nomad scaling policy list` command displays all Nomad scaling policies. Filter options include job and policy type.
|
|
---
|
|
|
|
# `nomad scaling policy list` command reference
|
|
|
|
List is used to list all scaling policies stored in Nomad.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad scaling policy list [options]
|
|
```
|
|
|
|
If ACLs are enabled, this command requires a token with the `read-job` and
|
|
`list-jobs` capabilities for the namespace of all policies. Any namespaces
|
|
that the token does not have access to will have its policies filtered from
|
|
the results.
|
|
|
|
## Options
|
|
|
|
- `-job` : Specifies the job ID to filter the scaling policies list by.
|
|
- `-type` : Filter scaling policies by type.
|
|
- `-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
|
|
```
|
|
|
|
## General options
|
|
|
|
@include 'general_options.mdx'
|