open-nomad/website/source/docs/commands/sentinel/read.html.md.erb
2018-03-22 13:39:18 -07:00

47 lines
854 B
Plaintext

---
layout: "docs"
page_title: "Commands: sentinel read"
sidebar_current: "docs-commands-sentinel-read"
description: >
The sentinel read command is used to inspect a Sentinel policies.
---
# Command: sentinel read
The `sentinel read` command is used to inspect a Sentinel policy.
~> Sentinel commands are new in Nomad 0.7 and are only available with Nomad
Enterprise.
## Usage
```
nomad sentinel read [options] <Policy Name>
```
The `sentinel read` command requires a single argument, the policy name.
## General Options
<%= partial "docs/commands/_general_options" %>
## Read Options
* `-raw` : Output the raw policy only.
## Examples
Read all policies:
```
$ nomad sentinel read foo
Name = foo
Scope = submit-job
Enforcement Level = advisory
Description = my test policy
Policy:
main = rule { true }
```