node_update
Replace a Docker node's complete specification (availability, name, role, labels) with a new spec, clearing any omitted fields. Provide the full spec to update the node.
Instructions
Replace a node's spec (availability, name, role, labels).
Replacement, not a merge: spec becomes the node's entire spec, and omitted keys are cleared.
Fetch the current spec via node_inspect (its Spec key), modify it, and resubmit the whole
dict - e.g. sending just {"Availability": "drain"} would also wipe the node's role and labels.
Args: spec: The complete new node spec (see description - omitted keys are cleared)
Returns: bool: True after the update
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |