Skip to content

Commit

Permalink
Added docs for the purge API
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Oct 26, 2017
1 parent 6340992 commit f362f99
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions website/source/api/nodes.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,3 +614,48 @@ $ curl \
"KnownLeader": false
}
```

## Purge Node

This endpoint purges a node from the system. Nodes can still join the cluster if
they are alive.

| Method | Path | Produces |
| ------- | ------------------------- | -------------------------- |
| `POST` | `/v1/node/:node_id/purge` | `application/json` |

The table below shows this endpoint's support for
[blocking queries](/api/index.html#blocking-queries) and
[required ACLs](/api/index.html#acls).

| Blocking Queries | ACL Required |
| ---------------- | ------------------ |
| `NO` | `node:write` |

### Parameters

- `:node_id` `(string: <required>)`- Specifies the UUID of the node. This must
be the full UUID, not the short 8-character one. This is specified as part of
the path.

### Sample Request

```text
$ curl \
https://nomad.rocks/v1/node/fb2170a8-257d-3c64-b14d-bc06cc94e34c/purge
```

### Sample Response

```json
{
"EvalIDs": [
"253ec083-22a7-76c9-b8b6-2bf3d4b27bfb"
],
"EvalCreateIndex": 91,
"NodeModifyIndex": 90,
"Index": 90,
"LastContact": 0,
"KnownLeader": false
}
```

0 comments on commit f362f99

Please sign in to comment.