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