github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/scaling/policy-list.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: scaling policy list'
     4  description: |
     5    Display all Nomad scaling policies.
     6  ---
     7  
     8  # Command: scaling policy list
     9  
    10  List is used to list all scaling policies stored in Nomad.
    11  
    12  ## Usage
    13  
    14  ```plaintext
    15  nomad scaling policy list [options]
    16  ```
    17  
    18  If ACLs are enabled, this command requires a token with the `read-job` and
    19  `list-jobs` capabilities for the namespace of all policies. Any namespaces
    20  that the token does not have access to will have its policies filtered from
    21  the results.
    22  
    23  ## General Options
    24  
    25  @include 'general_options.mdx'
    26  
    27  ## Policy List Options
    28  
    29  - `-job` : Specifies the job ID to filter the scaling policies list by.
    30  - `-type` : Filter scaling policies by type.
    31  - `-json` : Output the scaling policy list in its JSON format.
    32  - `-t` : Format and display the scaling policy list using a Go template.
    33  
    34  ## Examples
    35  
    36  List all tracked scaling policies:
    37  
    38  ```shell-session
    39  $ nomad scaling policy list
    40  
    41  ID                                    Enabled  Target
    42  b2c64295-4315-2fdc-6158-a27156808729  true     Namespace:default,Job:example,Group:cache,Task:redis
    43  c355d0ec-7aa1-2604-449d-4ec79c813d2c  true     Namespace:default,Job:webapp,Group:demo,Task:webapp
    44  ```