Resize a disk

Resizes a Disk you have permission to read_write.

The Disk must not be in use. If the Disk is in use, the request will succeed but the resize will ultimately fail. For a request to succeed, the Linode must be shut down prior to resizing the Disk, or the Disk must not be assigned to the Linode's active Configuration Profile.

If you are resizing the Disk to a smaller size, it cannot be made smaller than what is required by the total size of the files current on the Disk.

linode-cli linodes disk-resize 123 25674 \
  --size 2048

<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
linodes:read_write

<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>
Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

ID of the Linode to look up.

integer
required

ID of the Disk to look up.

Body Params

The new size of the Disk.

integer
required
≥ 1

The desired size, in MB, of the disk.

Responses

Language
Credentials
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json