Drain an agent
POST/api/agent/:hostname/drain
Stop the agent from accepting new jobs. In-flight jobs continue to completion.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
- 500
Agent drain initiated.
The request is not valid.
Unauthorized - API key required
Forbidden - Insufficient permissions
Agent not found.
Agent already in requested state.
An error on the controller.