curl --request PATCH \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "disk_size": 200}'import requests
response = requests.patch( "https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "disk_size": 200, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/dbaas/{managed_db_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "PATCH", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "disk_size": 200 }),});console.log(await response.json());Grows the disk. The database must be Running; status becomes Scaling until the new size is in place. A disk cannot shrink. Needs the Update permission on DBaaS.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Database ID
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Request Bodyrequired
Section titled “Request Bodyrequired”object
New disk size in GB: at least the current size, 20 to 2,000.
Example
200Responses
Section titled “Responses”Resize started; the database is Scaling
object
object
Creating while the database is being set up, started or restarted, Running, Scaling while the disk grows, Degraded when the database is serving but its health could not be fully confirmed (Stop and Restart are also accepted from it), Stopped, Failed when the launch did not finish or a storage resize did not complete, and Terminating while it is deleted.
VCPUs, set by the plan.
Memory, set by the plan.
Disk size in GB.
Public read-write address and port. null until the database first reaches Running, and while it has no IP allowlist.
true when the database cannot be deleted.
The attached parameter group.
object
The plan: its specification under specs and its pricing under plan. null when the plan is gone.
object
IPv4 ranges allowed to reach the public endpoint.
object
Description of the range; empty when none was given.
The VPC attachment. null when no VPC is attached.
object
The database’s address in the VPC.
The database’s VPC address; null without a VPC.
true when the vector extension was chosen at creation.
Extensions set at creation.
object
Example
{ "code": 200, "message": "Success", "data": { "id": 123, "name": "orders-db", "engine": "postgresql", "engine_version": "16", "status": "Creating", "cpu": "4", "memory": "16Gi", "disk_size": 100, "endpoint_url": "<host>:5432", "public_ip": "203.0.113.25", "private_ip": "10.0.4.17", "deletion_protection": false, "parameter_group_id": null, "created_by": { "id": 501, "name": "Example User", "email": "user@example.com", "username": "user@example.com" }, "created_at": "2026-10-21T11:17:29Z", "updated_at": "2026-10-21T11:31:05Z", "ip_allowlist": [ { "cidr": "203.0.113.0/24", "label": "office VPN" } ], "location": "Chennai", "vpc_id": null, "vpc": { "id": 41, "vpc_name": "app-vpc", "subnet_name": "app-subnet", "resource_type": "Database", "resource_name": "orders-db", "object_id": 123, "ip_address": "10.10.0.12", "status": "Attached", "attached_at": "2026-10-21T11:20:02Z", "created_at": "2026-10-21T11:17:29Z" }, "vpc_private_ip": null, "pgvector_enabled": true, "extensions": [ "pg_stat_statements", "vector" ] }, "errors": {}}disk_size is smaller than the current size (“Disk size can’t be reduced”) or outside 20 to 2,000 (“Disk size not allowed less than 20.”, “Disk size not allowed greater than 2000.”). A missing or invalid project ID also gives 400 with errors “Project ID is missing or invalid”.
object
object
Keyed by field.
object
Example
{ "code": 400, "message": "Bad Request", "data": {}, "errors": { "disk_size": [ "Disk size can't be reduced" ] }}The caller lacks the permission the call needs on the project, or the region is not allowed.
object
object
Example
{ "code": 403, "message": "Forbidden", "data": {}, "errors": "You don't have permission to access this service. Please verify your policy or project."}No database with that ID in the project and region.
object
object
Example
{ "code": 404, "message": "Bad Request", "data": {}, "errors": "Invalid request! Database Not Found"}The database is not Running (“Database NOT in RUNNING state. Please try again later.”), or the resize could not start (“Error occurred at backend! Please try after sometime.”).
object
object
Example
{ "code": 412, "message": "Precondition Failed", "data": {}, "errors": "Database NOT in RUNNING state. Please try again later."}