curl --request PUT \ --url 'https://api.e2enetworks.com/myaccount/api/v1/nodes/{node_id}/root-storage-upgrade/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "disk_size": 125}'import requests
response = requests.put( "https://api.e2enetworks.com/myaccount/api/v1/nodes/{node_id}/root-storage-upgrade/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "disk_size": 125, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/nodes/{node_id}/root-storage-upgrade/");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({ "disk_size": 125 }),});console.log(await response.json());Grows the node’s root disk to the requested size. The node must be Running or Powered off and not in recovery mode; the new size must be larger than the current size, within the plan’s allowed range, and a multiple the plan requires for its size band. The node moves to Upgrading while the resize runs. This view reads the request body directly rather than through a schema class, so the required fields here are written from the service code, not from an automated schema check.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Path parameter node_id.
Query 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 node whose root storage is being increased.
Example
<LOCATION>Request Body
Section titled “Request Body”object
New root disk size in gigabytes. Must be strictly greater than the current root disk size. Root disk shrinking is not supported.
Example
125Responses
Section titled “Responses”Successful response
object
HTTP status code of the increase-root-storage operation.
object
Identifier of the node whose root disk was resized.
Identifier of the customer that owns the node.
New root disk size in gigabytes after the resize.
object
Status message for the root storage increase.
Example
{ "code": 200, "data": { "node_id": 12345, "customer_id": 12345, "new_disk_size_in_GB": 125 }, "message": "Root disk size upgrade in progress."}