v1

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

Creates a snapshot.

post/v1/{+parent}/snapshots

Path parameters

parentstring required

Required. The Filestore Instance to create the snapshots of, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

Query parameters

snapshotIdstring

Required. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

Request body

namestring

Output only. The resource name of the snapshot, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}.

tagsobject

Optional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment" : "production", "123456789013/costCenter" : "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_value

labelsobject

Resource labels to represent user provided metadata.

descriptionstring

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

state'STATE_UNSPECIFIED' | 'CREATING' | 'READY' | 'DELETING'

Output only. The snapshot state.

createTimestring google-datetime

Output only. The time when the snapshot was created.

filesystemUsedBytesstring int64

Output only. The amount of bytes needed to allocate a full copy of the snapshot content

Response

Successful response