Skip to content

Upgrade Master Node Plan

PUT
/api/v1/kubernetes/master-upgrade/{service_id}/
curl --request PUT \
--url 'https://api.e2enetworks.com/myaccount/api/v1/kubernetes/master-upgrade/{service_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"sku_id": 1694,
"plan": "E2E-K8s-Cluster-Large"
}'

Upgrades the cluster’s master node to a larger plan. Send the target sku_id (a master specs.id from Master Plan). The target plan must have more vCPU and RAM than the current master plan - downgrades are rejected. Use the cluster service_id.

service_id
required
integer

The cluster service_id, as returned by List.

Example

12345
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

Target master plan to upgrade to.

object
sku_id
required

SKU ID of the target master plan (a specs.id from Master Plan). Must have more vCPU and RAM than the current plan.

integer

Example

1694
plan

Human-readable name of the target plan (optional; for display).

string

Example

E2E-K8s-Cluster-Large

Example

{
"sku_id": 1694,
"plan": "E2E-K8s-Cluster-Large"
}

Successful response

Media typeapplication/json
object
code
integer
data
object
service_id
integer
new_sku_id
integer
old_sku_id
integer
vcpu
integer
ram
integer
location
string
errors
object
message
string

Example

{
"code": 200,
"data": {
"service_id": 12345,
"new_sku_id": 1694,
"old_sku_id": 1178,
"vcpu": 8,
"ram": 16000,
"location": "Delhi"
},
"message": "Master node upgrade initiated"
}