github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/sentinel/read.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: sentinel read'
     4  sidebar_title: read
     5  description: |
     6    The sentinel read command is used to inspect a Sentinel policies.
     7  ---
     8  
     9  # Command: sentinel read
    10  
    11  The `sentinel read` command is used to inspect a Sentinel policy.
    12  
    13  ~> Sentinel commands are new in Nomad 0.7 and are only available with Nomad
    14  Enterprise.
    15  
    16  ## Usage
    17  
    18  ```plaintext
    19  nomad sentinel read [options] <Policy Name>
    20  ```
    21  
    22  The `sentinel read` command requires a single argument, the policy name.
    23  
    24  ## General Options
    25  
    26  @include 'general_options.mdx'
    27  
    28  ## Read Options
    29  
    30  - `-raw` : Output the raw policy only.
    31  
    32  ## Examples
    33  
    34  Read all policies:
    35  
    36  ```shell-sessionnomad sentinel read foo
    37  Name              = foo
    38  Scope             = submit-job
    39  Enforcement Level = advisory
    40  Description       = my test policy
    41  Policy:
    42  
    43  main = rule { true }
    44  
    45  ```