---
title: "Resize an LXC (CPU/RAM/disk-grow)"
method: POST
path: "/api/lxc/{service_id}/resize"
tags: ["lxc"]
---

# Resize an LXC (CPU/RAM/disk-grow)

`POST /api/lxc/{service_id}/resize`

## Request

- Base URL: `https://api.monacloud.vn`
- URL: `https://api.monacloud.vn/api/lxc/{service_id}/resize`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Token`

Tạo dữ liệu hoặc thực thi thao tác tại `/api/lxc/{service_id}/resize`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.

## Path parameters

- `service_id` string, required

## Request body

- LxcResizeRequest: Resize an existing LXC. All three fields are required and must already pass the standard bounds; the route additionally enforces that disk_gb is >= the service's current disk size (no shrink) and that at least one value differs from the current spec.
  - `cpu` integer, required
  - `ram_gb` integer, required
  - `disk_gb` integer, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud.md) · [All operations](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/llms.txt) · [OpenAPI document](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/revisions/34a120ed37ce?raw)
