Skip to content

Commit

Permalink
docs: API docs update for volume detach
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Aug 7, 2020
1 parent 5995a86 commit f3f03b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions website/pages/api-docs/volumes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ $ curl \

## Delete Volume

This endpoint deregisters an external volume with Nomad. It is an
error to deregister a volume that is in use.
This endpoint deregisters an external volume with Nomad or detaches the volume
from a node. It is an error to deregister or detach a volume that is in use.

| Method | Path | Produces |
| ------- | ---------------------------- | ------------------ |
Expand All @@ -323,6 +323,12 @@ The table below shows this endpoint's support for
running allocations. This does not detach the volume from client nodes.
This is specified as a query string parameter.

- `detach` `(bool: false)`- Detach the volume from the node given by the `node`
parameter, rather than deregister it.

- `node` `(string: "")`- The node to detach the volume from. This parameter is
required if the `detach` parameter is `true`.

### Sample Request

```shell-session
Expand Down

0 comments on commit f3f03b9

Please sign in to comment.