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”The cluster service_id, as returned by List.
Example
12345Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used to authenticate the request.
Example
<API_KEY>Region of the cluster.
Example
<LOCATION>Request Body
Section titled “Request Body”Target master plan to upgrade to.
object
SKU ID of the target master plan (a specs.id from Master Plan). Must have more vCPU and RAM than the current plan.
Example
1694Human-readable name of the target plan (optional; for display).
Example
E2E-K8s-Cluster-LargeExample
{ "sku_id": 1694, "plan": "E2E-K8s-Cluster-Large"}Responses
Section titled “Responses”Successful response
object
object
object
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"}Was this page helpful?