Files
9e5b91568743178f9fbc251f02ea93e77a7da01e
nova /api-ref /source /os-assisted-volume-snapshots.inc

92 lines
2.5 KiB
PHP
Raw Normal View History

==========================================================
Assisted volume snapshots (os-assisted-volume-snapshots)
==========================================================
an emulator/hypervisor to add the snapshot feature.
GlusterFS by storing data as qcow2 files on these volumes.
This API is only ever called by Cinder, where it is used to create a snapshot
for drivers that extend the remotefs Cinder driver.
Create Assisted Volume Snapshots
================================
Creates an assisted volume snapshot.
Normal response codes: 200
Request
.. rest_parameters:: parameters.yaml
- volume_id: volume_id
- create_info: create_info
- create_info.type: type-os-assisted-volume-snapshot
- create_info.new_file: new_file
- create_info.id: create_info_id
**Example Create Assisted Volume Snapshots: JSON request**
.. literalinclude:: ../../doc/api_samples/os-assisted-volume-snapshots/snapshot-create-assisted-req.json
:language: javascript
Response
.. rest_parameters:: parameters.yaml
- id: create_info_id_resp
- volumeId: volume_id
.. literalinclude:: ../../doc/api_samples/os-assisted-volume-snapshots/snapshot-create-assisted-resp.json
:language: javascript
Delete Assisted Volume Snapshot
===============================
Deletes an assisted volume snapshot.
To make this request, add the ``delete_info`` query parameter to the URI, as follows:
DELETE /os-assisted-volume-snapshots/421752a6-acf6-4b2d-bc7a-119f9148cd8c?delete_info='{"volume_id": "521752a6-acf6-4b2d-bc7a-119f9148cd8c"}'
Normal response codes: 204
itemNotFound(404)
Request
.. rest_parameters:: parameters.yaml
Response
There is no body content for the response of a successful DELETE query