vinfra service compute volume snapshot create
Create a snapshot of a volume:
usage: vinfra service compute volume snapshot create [--description
<description>]
--volume <volume>
<volume-snapshot-name>
--description <description>- Volume snapshot description
--volume <volume>- Volume ID or name
<volume-snapshot-name>- Volume snapshot name
Example:
# vinfra service compute volume snapshot create mysnapshot --volume myvolume
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| created_at | 2019-04-30T13:12:54.297629+00:00 |
| description | |
| id | 3fdfe5d6-8bd2-4bf5-8599-a9cef50e5b71 |
| metadata | {} |
| name | mysnapshot |
| project_id | fd0ae61496d04ef6bb637bc3167b7eaf |
| size | 8 |
| status | creating |
| volume_id | 92dc3bd7-713d-42bf-83cd-4de40c24fed9 |
+-------------+--------------------------------------+
This command initiates creation of a snapshot mysnapshot of the volume myvolume.