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"}'import requests
response = requests.put( "https://api.e2enetworks.com/myaccount/api/v1/kubernetes/master-upgrade/{service_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "sku_id": 1694, "plan": "E2E-K8s-Cluster-Large", },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/kubernetes/master-upgrade/{service_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "PUT", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "sku_id": 1694, "plan": "E2E-K8s-Cluster-Large" }),});console.log(await response.json());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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”service_id
required
integer
The cluster service_id, as returned by List.
Example
12345Query Parameters
Section titled “Query Parameters”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>Request Body
Section titled “Request Body”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
1694plan
Human-readable name of the target plan (optional; for display).
string
Example
E2E-K8s-Cluster-LargeExample
{ "sku_id": 1694, "plan": "E2E-K8s-Cluster-Large"}Responses
Section titled “Responses”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"}