Fix docs on API for volume detaching (#9002)

`nomad volume detach volume-id 00000000-0000-0000-0000-000000000000` produces an API call containing the UUID as part of the query string. This is the only way the API accepts the request correctly - if you pass it in the payload you get `detach requires node ID`
This commit is contained in:
José Maia
2020-10-01 16:01:13 +01:00
committed by GitHub
parent d5a630cf5a
commit c8bc8517e8

View File

@@ -360,12 +360,12 @@ The table below shows this endpoint's support for
path.
- `node` `(string: <required>)`- The node to detach the volume from.
This is specified as a query string parameter.
### Sample Request
```shell-session
$ curl \
--request DELETE \
--data @payload.json \
https://localhost:4646/v1/volume/csi/volume-id/detach
https://localhost:4646/v1/volume/csi/volume-id/detach?node=00000000-0000-0000-0000-000000000000
```