github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/scaling/policy-list.mdx (about)

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