github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/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  Sentinel commands are only available when ACLs are enabled. This command
    25  requires a management token.
    26  
    27  ## General Options
    28  
    29  @include 'general_options_no_namespace.mdx'
    30  
    31  ## Read Options
    32  
    33  - `-raw` : Output the raw policy only.
    34  
    35  ## Examples
    36  
    37  Read all policies:
    38  
    39  ```shell-session
    40  $ nomad sentinel read foo
    41  Name              = foo
    42  Scope             = submit-job
    43  Enforcement Level = advisory
    44  Description       = my test policy
    45  Policy:
    46  
    47  main = rule { true }
    48  
    49  ```