v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-134680139.0 KB
projects

Create a new snapshot for a volume.

post/v1/{+parent}/snapshots

Path parameters

parentstring required

Required. The NetApp volume to create the snapshots of, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}

Query parameters

snapshotIdstring

Required. ID of the snapshot to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

Request body

labelsobject

Resource labels to represent user provided metadata.

namestring

Identifier. The resource name of the snapshot. Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}.

usedBytesnumber double

Output only. Current storage usage for the snapshot in bytes.

createTimestring google-datetime

Output only. The time when the snapshot was created.

stateDetailsstring

Output only. State details of the storage pool

state'STATE_UNSPECIFIED' | 'READY' | 'CREATING' | 'DELETING' | 'UPDATING' | 'DISABLED' | 'ERROR'

Output only. The snapshot state.

descriptionstring

A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.

Response

Successful response