Skip to content

Worker Node Power/Reboot/Rename Action

PUT
/api/v1/kubernetes/node-pool/{node_pool_id}/update-worker-node/{node_id}/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/node-pool/{node_pool_id}/update-worker-node/{node_id}/?action=reboot&project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{}'

Performs a lifecycle action on a single worker node. The action is chosen with the required action query parameter: power_on, power_off, reboot, or rename. The path takes the node pool service_id and the node’s id.

node_pool_id
required
integer

The node pool service_id (from List Node Pools).

Example

12346
node_id
required
integer

The id of the worker node (from Node Pool Details).

Example

320001
action
required
string

The lifecycle action to perform on the node.

Example

reboot
project_id
required
integer

Identifier of the project to scope the request to. Required integer project ID.

Example

<PROJECT_ID>
apikey
required
string

API key used to authenticate the request.

Example

<API_KEY>
location
required
string

Region of the cluster.

Example

<LOCATION>
Media typeapplication/json

The lifecycle action takes an empty request body; the action is set via the action query parameter.

object

Example

{}

Successful response

Media typeapplication/json
object
code
integer
data
object
errors
object
message
string

Example

{
"code": 200,
"message": "Action performed successfully"
}