Browse Source

API DOCS: Update snapshot curl example (#3423)

pull/3426/head
Brian Shumate 7 years ago committed by James Phillips
parent
commit
fe915938c7
  1. 8
      website/source/api/snapshot.html.md

8
website/source/api/snapshot.html.md

@ -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.

Loading…
Cancel
Save