// Error is a state where the user can't see the snapshot while the snapshot may still exist on the storage
Error
)
// Snapshot represents a volume snapshot
typeSnapshotstruct{
Accountstring`json:"account,omitempty" doc:"the account associated with the snapshot"`
AccountID*UUID`json:"accountid,omitempty" doc:"the account ID associated with the snapshot"`
Createdstring`json:"created,omitempty" doc:"the date the snapshot was created"`
Domainstring`json:"domain,omitempty" doc:"the domain name of the snapshot's account"`
DomainID*UUID`json:"domainid,omitempty" doc:"the domain ID of the snapshot's account"`
ID*UUID`json:"id,omitempty" doc:"ID of the snapshot"`
IntervalTypestring`json:"intervaltype,omitempty" doc:"valid types are hourly, daily, weekly, monthy, template, and none."`
Namestring`json:"name,omitempty" doc:"name of the snapshot"`
PhysicalSizeint64`json:"physicalsize,omitempty" doc:"physical size of the snapshot on image store"`
Revertable*bool`json:"revertable,omitempty" doc:"indicates whether the underlying storage supports reverting the volume to this snapshot"`
Sizeint64`json:"size,omitempty" doc:"the size of original volume"`
SnapshotTypestring`json:"snapshottype,omitempty" doc:"the type of the snapshot"`
StateSnapshotState`json:"state,omitempty" doc:"the state of the snapshot. BackedUp means that snapshot is ready to be used; Creating - the snapshot is being allocated on the primary storage; BackingUp - the snapshot is being backed up on secondary storage"`
Tags[]ResourceTag`json:"tags,omitempty" doc:"the list of resource tags associated with snapshot"`
VolumeID*UUID`json:"volumeid,omitempty" doc:"ID of the disk volume"`
VolumeNamestring`json:"volumename,omitempty" doc:"name of the disk volume"`
VolumeTypestring`json:"volumetype,omitempty" doc:"type of the disk volume"`
ZoneID*UUID`json:"zoneid,omitempty" doc:"id of the availability zone"`
// CreateSnapshot (Async) creates an instant snapshot of a volume
typeCreateSnapshotstruct{
VolumeID*UUID`json:"volumeid" doc:"The ID of the disk volume"`
Accountstring`json:"account,omitempty" doc:"The account of the snapshot. The account parameter must be used with the domainId parameter."`
DomainID*UUID`json:"domainid,omitempty" doc:"The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the disk volume."`
QuiesceVM*bool`json:"quiescevm,omitempty" doc:"quiesce vm if true"`
_bool`name:"createSnapshot" description:"Creates an instant snapshot of a volume."`
Accountstring`json:"account,omitempty" doc:"list resources by account. Must be used with the domainId parameter."`
DomainID*UUID`json:"domainid,omitempty" doc:"list only resources belonging to the domain specified"`
ID*UUID`json:"id,omitempty" doc:"lists snapshot by snapshot ID"`
IntervalTypestring`json:"intervaltype,omitempty" doc:"valid values are HOURLY, DAILY, WEEKLY, and MONTHLY."`
IsRecursive*bool`json:"isrecursive,omitempty" doc:"defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves."`
Keywordstring`json:"keyword,omitempty" doc:"List by keyword"`
ListAll*bool`json:"listall,omitempty" doc:"If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false"`
Namestring`json:"name,omitempty" doc:"lists snapshot by snapshot name"`
Pageint`json:"page,omitempty"`
PageSizeint`json:"pagesize,omitempty"`
SnapshotTypestring`json:"snapshottype,omitempty" doc:"valid values are MANUAL or RECURRING."`
Tags[]ResourceTag`json:"tags,omitempty" doc:"List resources by tags (key/value pairs)"`
VolumeID*UUID`json:"volumeid,omitempty" doc:"the ID of the disk volume"`
ZoneID*UUID`json:"zoneid,omitempty" doc:"list snapshots by zone id"`
_bool`name:"listSnapshots" description:"Lists all available snapshots for the account."`