Drain an agent
POST/api/agent/:hostname/drain
Stop the agent from accepting new jobs. In-flight jobs continue to completion.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Agent drain initiated.
Invalid hostname.
Unauthorized - API key required
Forbidden - Insufficient permissions
Agent not found.
Agent already in requested state.