Apache CloudStack 4.20.0.0 Root Admin API Reference

listSnapshots

Lists all available snapshots for the account.

Request parameters

Parameter NameDescriptionRequired
accountlist resources by account. Must be used with the domainId parameter.false
domainidlist only resources belonging to the domain specifiedfalse
idlists snapshot by snapshot IDfalse
idsthe IDs of the snapshots, mutually exclusive with idfalse
imagestoreidID of the image or image cache storefalse
intervaltypevalid values are HOURLY, DAILY, WEEKLY, and MONTHLY.false
isrecursivedefaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.false
keywordList by keywordfalse
listallIf 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. Resources dedicated to a project are listed only if using the projectid parameter.false
locationtypelist snapshots by location type. Used only when showunique=false. Valid location types: 'primary', 'secondary'. Default is emptyfalse
namelists snapshot by snapshot namefalse
pagefalse
pagesizefalse
projectidlist objects by project; if projectid=-1 lists All VMsfalse
showuniqueIf set to false, list templates across zones and their storagesfalse
snapshottypevalid values are MANUAL or RECURRING.false
storageidID of the storage poolfalse
tagsList resources by tags (key/value pairs)false
volumeidthe ID of the disk volumefalse
zoneidlist snapshots by zone idfalse

Response Tags

Response NameDescription
idID of the snapshot
accountthe account associated with the snapshot
created the date the snapshot was created
datastoreidID of the datastore for the snapshot entry
datastorenamename of the datastore for the snapshot entry
datastorestatestate of the snapshot on the datastore
datastoretypetype of the datastore for the snapshot entry
domainthe domain name of the snapshot's account
domainidthe domain ID of the snapshot's account
domainpathpath of the Domain the snapshot's account belongs to
downloaddetailsdownload progress of a snapshot
intervaltypevalid types are hourly, daily, weekly, monthy, template, and none.
locationtypevalid location types are primary and secondary.
namename of the snapshot
osdisplaynamedisplay name of the os on volume
ostypeidid of the os on volume
physicalsizephysical size of backedup snapshot on image store
projectthe project name of the snapshot
projectidthe project id of the snapshot
revertableindicates whether the underlying storage supports reverting the volume to this snapshot
snapshottypethe type of the snapshot
statethe 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
statusthe status of the template
virtualsizevirtual size of backedup snapshot on image store
volumeidID of the disk volume
volumenamename of the disk volume
volumestatestate of the disk volume
volumetypetype of the disk volume
zoneidid of the availability zone
zonenamename of the availability zone
jobidthe ID of the latest async job acting on this object
jobstatusthe current status of the latest async job acting on this object