Revision c249ee68 qapi-schema.json

b/qapi-schema.json
156 156
            'running', 'save-vm', 'shutdown', 'suspended', 'watchdog' ] }
157 157

  
158 158
##
159
# @SnapshotInfo
160
#
161
# @id: unique snapshot id
162
#
163
# @name: user chosen name
164
#
165
# @vm-state-size: size of the VM state
166
#
167
# @date-sec: UTC date of the snapshot in seconds
168
#
169
# @date-nsec: fractional part in nano seconds to be used with date-sec
170
#
171
# @vm-clock-sec: VM clock relative to boot in seconds
172
#
173
# @vm-clock-nsec: fractional part in nano seconds to be used with vm-clock-sec
174
#
175
# Since: 1.3
176
#
177
##
178

  
179
{ 'type': 'SnapshotInfo',
180
  'data': { 'id': 'str', 'name': 'str', 'vm-state-size': 'int',
181
            'date-sec': 'int', 'date-nsec': 'int',
182
            'vm-clock-sec': 'int', 'vm-clock-nsec': 'int' } }
183

  
184
##
185
# @ImageInfo:
186
#
187
# Information about a QEMU image file
188
#
189
# @filename: name of the image file
190
#
191
# @format: format of the image file
192
#
193
# @virtual-size: maximum capacity in bytes of the image
194
#
195
# @actual-size: #optional actual size on disk in bytes of the image
196
#
197
# @dirty-flag: #optional true if image is not cleanly closed
198
#
199
# @cluster-size: #optional size of a cluster in bytes
200
#
201
# @encrypted: #optional true if the image is encrypted
202
#
203
# @backing-filename: #optional name of the backing file
204
#
205
# @full-backing-filename: #optional full path of the backing file
206
#
207
# @backing-filename-format: #optional the format of the backing file
208
#
209
# @snapshots: #optional list of VM snapshots
210
#
211
# Since: 1.3
212
#
213
##
214

  
215
{ 'type': 'ImageInfo',
216
  'data': {'filename': 'str', 'format': 'str', '*dirty-flag': 'bool',
217
           '*actual-size': 'int', 'virtual-size': 'int',
218
           '*cluster-size': 'int', '*encrypted': 'bool',
219
           '*backing-filename': 'str', '*full-backing-filename': 'str',
220
           '*backing-filename-format': 'str', '*snapshots': ['SnapshotInfo'] } }
221

  
222
##
159 223
# @StatusInfo:
160 224
#
161 225
# Information about VCPU run state

Also available in: Unified diff