Skip to main content

snapshots

Overview

Namesnapshots
TypeResource
Idgoogle.file.snapshots

Fields

NameDatatypeDescription
namestringOutput only. The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.
descriptionstringA description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
createTimestringOutput only. The time when the snapshot was created.
filesystemUsedBytesstringOutput only. The amount of bytes needed to allocate a full copy of the snapshot content
labelsobjectResource labels to represent user provided metadata.
statestringOutput only. The snapshot state.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstancesId, locationsId, projectsId, snapshotsIdGets the details of a specific snapshot.
listSELECTinstancesId, locationsId, projectsIdLists all snapshots in a project for either a specified location or for all locations.
createINSERTinstancesId, locationsId, projectsIdCreates a snapshot.
deleteDELETEinstancesId, locationsId, projectsId, snapshotsIdDeletes a snapshot.
_listEXECinstancesId, locationsId, projectsIdLists all snapshots in a project for either a specified location or for all locations.
patchEXECinstancesId, locationsId, projectsId, snapshotsIdUpdates the settings of a specific snapshot.