API DOCS: Update snapshot curl example (#3423)

This commit is contained in:
Brian Shumate 2017-08-29 12:05:00 -04:00 committed by James Phillips
parent 2190a4fb71
commit 9f0900c97d
1 changed files with 2 additions and 6 deletions

View File

@ -60,14 +60,10 @@ The table below shows this endpoint's support for
With a custom datacenter:
```text
$ curl https://consul.rocks/v1/snapshot?dc=my-datacenter
$ curl https://consul.rocks/v1/snapshot?dc=my-datacenter -o snapshot.tgz
```
### Sample Response
```text
<gzipped tarball ...>
```
The above example results in a tarball named `snapshot.tgz` in the current working directory.
In addition to the Consul standard stale-related headers, the `X-Consul-Index`
header will contain the index at which the snapshot took place.