daemon

Prepare a leased update drain

post/api/update/prepare

Request body

$schemastring uri

A URL to the JSON Schema for this object.

owner_idstring required
policy'wait' | 'interrupt' | 'abort' required

Example request

{
  "$schema": "https://example.com/UpdateDrainRequestBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

active_workersinteger required
expires_atstring date-time required
lease_tokenstring
policystring required
recoveringboolean required
running_jobsinteger required
targeted_running_jobsinteger required

Example response

{
  "$schema": "https://example.com/UpdateDrainStatus.json"
}

Changes

Changed in 1 of the 23 revisions of this API.1