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