Specify PUT for agent maintenance endpoint

Through most of the documentation if the method isn't specified it should be a `GET` request, but here it should be a `PUT`.
This commit is contained in:
Brandon Dennis 2017-01-31 16:00:27 -05:00 committed by GitHub
parent a64dea878b
commit 7f9649b6af
1 changed files with 5 additions and 4 deletions

View File

@ -220,10 +220,11 @@ The return code is 200 on success.
### <a name="agent_maintenance"></a> /v1/agent/maintenance
The node maintenance endpoint can place the agent into "maintenance mode".
During maintenance mode, the node will be marked as unavailable and will not be
present in DNS or API queries. This API call is idempotent. Maintenance mode is
persistent and will be automatically restored on agent restart.
The node maintenance endpoint is hit with a PUT and is used to place the agent
into "maintenance mode". During maintenance mode, the node will be marked as
unavailable and will not be present in DNS or API queries. This API call is
idempotent. Maintenance mode is persistent and will be automatically restored
on agent restart.
The `?enable` flag is required. Acceptable values are either `true` (to enter
maintenance mode) or `false` (to resume normal operation).