---
title: "PATCH /v2/{+name}"
method: PATCH
path: "/v2/{+name}"
tags: ["projects"]
---

# PATCH /v2/{+name}

`PATCH /v2/{+name}`

Update details of a single storage volume.

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string
- `updateMask` string

## Request body

- Volume — A storage volume.
  - `storageType` 'STORAGE_TYPE_UNSPECIFIED' | 'SSD' | 'HDD' — The storage type for this volume.
  - `bootVolume` boolean — Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'DELETING' | 'UPDATING' | 'COOL_OFF' — The state of this storage volume.
  - `notes` string — Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
  - `name` string — Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
  - `labels` object — Labels as key value pairs.
  - `requestedSizeGib` string, int64 — The requested size of this storage volume, in GiB.
  - `maxSizeGib` string, int64 — Maximum size volume can be expanded to in case of evergency, in GiB.
  - `workloadProfile` 'WORKLOAD_PROFILE_UNSPECIFIED' | 'GENERIC' | 'HANA' — The workload profile for the volume.
  - `snapshotEnabled` boolean — Whether snapshots are enabled.
  - `emergencySizeGib` string, int64 — Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
  - `snapshotReservationDetail` SnapshotReservationDetail — Details about snapshot space reservation and usage on the storage volume.
    - `reservedSpaceUsedPercent` integer — The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
    - `reservedSpaceGib` string, int64 — The space on this storage volume reserved for snapshots, shown in GiB.
    - `reservedSpaceRemainingGib` string, int64 — The amount, in GiB, of available space in this storage volume's reserved snapshot space.
    - `reservedSpacePercent` integer — Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
  - `protocol` 'PROTOCOL_UNSPECIFIED' | 'FIBRE_CHANNEL' | 'NFS' — Output only. Storage protocol for the Volume.
  - `snapshotAutoDeleteBehavior` 'SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED' | 'DISABLED' | 'OLDEST_FIRST' | 'NEWEST_FIRST' — The behavior to use when snapshot reserved space is full.
  - `attached` boolean — Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
  - `performanceTier` 'VOLUME_PERFORMANCE_TIER_UNSPECIFIED' | 'VOLUME_PERFORMANCE_TIER_SHARED' | 'VOLUME_PERFORMANCE_TIER_ASSIGNED' | 'VOLUME_PERFORMANCE_TIER_HT' | 'VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE' — Immutable. Performance tier of the Volume. Default is SHARED.
  - `originallyRequestedSizeGib` string, int64 — Originally requested size, in GiB.
  - `remainingSpaceGib` string, int64 — The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
  - `pod` string — Immutable. Pod name. Pod is an independent part of infrastructure. Volume can only be connected to the instances allocated in the same pod.
  - `instances` string[] — Output only. Instances this Volume is attached to. This field is set only in Get requests.
  - `id` string — An identifier for the `Volume`, generated by the backend.
  - `autoGrownSizeGib` string, int64 — The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
  - `currentSizeGib` string, int64 — The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
  - `expireTime` string, google-datetime — Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/baremetalsolution.md) · [All operations](https://skmtc.net/google/apis/baremetalsolution/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/baremetalsolution/versions/7c6ae0857ec6/schema)
