---
title: "POST /v2/{+notebookInstance}:resizeDisk"
method: POST
path: "/v2/{+notebookInstance}:resizeDisk"
tags: ["projects"]
---

# POST /v2/{+notebookInstance}:resizeDisk

`POST /v2/{+notebookInstance}:resizeDisk`

Resize a notebook instance disk to a higher capacity.

## Path parameters

- `notebookInstance` string, required

## Request body

- ResizeDiskRequest — Request for resizing the notebook instance disks
  - `bootDisk` BootDisk — The definition of a boot disk.
    - `diskSizeGb` string, int64 — Optional. The size of the boot disk in GB attached to this instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to the recommended value of 150GB.
    - `diskEncryption` 'DISK_ENCRYPTION_UNSPECIFIED' | 'GMEK' | 'CMEK' — Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    - `kmsKey` string — Optional. Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about using your own encryption keys.
    - `diskType` 'DISK_TYPE_UNSPECIFIED' | 'PD_STANDARD' | 'PD_SSD' | 'PD_BALANCED' | 'PD_EXTREME' | 'HYPERDISK_BALANCED' | 'HYPERDISK_EXTREME' | 'HYPERDISK_THROUGHPUT' | 'HYPERDISK_BALANCED_HIGH_AVAILABILITY' | 'HYPERDISK_ML' — Optional. Indicates the type of the disk.
  - `dataDisk` DataDisk — An instance-attached disk resource.
    - `diskSizeGb` string, int64 — Optional. The size of the disk in GB attached to this VM instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to 100.
    - `kmsKey` string — Optional. Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}` Learn more about using your own encryption keys.
    - `diskType` 'DISK_TYPE_UNSPECIFIED' | 'PD_STANDARD' | 'PD_SSD' | 'PD_BALANCED' | 'PD_EXTREME' | 'HYPERDISK_BALANCED' | 'HYPERDISK_EXTREME' | 'HYPERDISK_THROUGHPUT' | 'HYPERDISK_BALANCED_HIGH_AVAILABILITY' | 'HYPERDISK_ML' — Optional. Input only. Indicates the type of the disk.
    - `resourcePolicies` string[] — Optional. The resource policies to apply to the data disk.
    - `diskEncryption` 'DISK_ENCRYPTION_UNSPECIFIED' | 'GMEK' | 'CMEK' — Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/notebooks.md) · [All operations](https://skmtc.dev/google/apis/notebooks/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/notebooks/revisions/127a2a41b4c1/schema)
