Bulk Action
Applies the same action to multiple nodes at once. The body is a JSON payload with a node_ids array and a type field naming the action. Supported action types are the same as the single-node action endpoint's "simple" types - power_off, power_on, reboot, lock_vm, unlock_vm.
/api/v1/nodes/action-on-multiple-nodes/Query parameters
project_idQuerystringoptionalIdentifier of the project to scope the request to. Optional; if omitted, the account's default project is used.
- optional
- if omitted, the request is applied to the default project
example{{project_id}}apikeyQuerystringoptionalAPI key used to authenticate the bulk action request
- required
- must be a valid API key string
example{{api_key}}locationQuerystringoptionalRegion of the target nodes
- must be a non-empty string
- should contain only URL-safe characters
example{{location}}
Request body
application/json
IDs of the nodes to apply the action to. All nodes must belong to the project identified by the project_id query parameter and must be in a state compatible with the chosen action (e.g. you cannot power_off a node that is already off).
- required
- at least one entry
- each entry must be a positive integer node ID
- no duplicate IDs
The bulk-supported action to perform. A strict subset of the single-node action set - only the "simple" actions that take no additional fields are allowed in bulk.
power_off- required
- must be one of the bulk-supported action identifiers
Responses
200Successful response
HTTP status code of the bulk action result.
200- integer between 100 and 599
Result data returned by the bulk action.
Human-readable status message for the bulk action.
All selected nodes powered off successfuly.- non-empty string
- maximum length 200 characters