Represents a Persistent Disk Snapshot resource. See the Persistent Disk Snapshots documentation for more information.
For a list of methods for this resource, see the end of this page.
Resource representations
A Persistent Disk snapshot resource.
{ "kind": "compute#snapshot", "selfLink": string, "id": unsigned long, "creationTimestamp": string, "status": string, "diskSizeGb": long, "sourceDisk": string, "name": string, "description": string, "sourceDiskId": string, "storageBytes": long, "storageBytesStatus": string, "licenses": [ string ] }
Property name | Value | Description | Notes |
---|---|---|---|
creationTimestamp
|
string
|
[Output Only] Creation timestamp in RFC3339 text format. | |
description
|
string
|
An optional textual description of the resource; provided by the client when the resource is created. | |
diskSizeGb
|
long
|
[Output Only] Size of the persistent disk snapshot, specified in GB. | |
id
|
unsigned long
|
[Output Only] Unique identifier for the resource, defined by the server. | |
kind
|
string
|
[Output Only]
Type of the resource. Always
compute#snapshot
.
|
|
licenses[]
|
list
|
[Output Only] A list of public visible licenses that apply to this snapshot. This can be because the original image had licenses attached (such as a Windows image). | |
name
|
string
|
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with
RFC1035
. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
|
|
selfLink
|
string
|
[Output Only] Server defined URL for the resource. | |
sourceDisk
|
string
|
[Output Only] The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created. | |
sourceDiskId
|
string
|
[Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name. | |
status
|
string
|
[Output Only]
The status of the persistent disk snapshot.
Acceptable values are:
|
|
storageBytes
|
long
|
[Output Only] A size of the storage used by the snapshot. As snapshots share storage, this number is expected to change with snapshot creation/deletion. | |
storageBytesStatus
|
string
|
[Output Only]
An indicator whether
storageBytes
is in a stable state, or it is being adjusted as a result of shared storage reallocation.
Acceptable values are:
|
Methods
The following are valid Snapshot resource methods: