---
title: "Resize a Compute instance disk"
method: PUT
path: "/instance/{id}:resize-disk"
tags: ["instance"]
---

# Resize a Compute instance disk

`PUT /instance/{id}:resize-disk`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/instance/{id}:resize-disk`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/instance/:id:resize-disk/put.ts> (a function with typed inputs; its response is checked against the schema)

This operation resizes a Compute instance's disk volume. Note: the disk can only grow, cannot be shrunk.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `disk-size` integer, required: Instance disk size in GiB

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2024-05-22** `d1903c399d90`: 1 info
  - the `disk-size` request property's max was increased from `50000.00` to `51200.00`

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/instance/:id:resize-disk/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
