Creating Snapshots
/v3/{project_id}/snapshotsCreates a volume snapshot, which is a point-in-time, complete copy of a volume. This request requires an authentication token, which you should include in the request headers.
Source: create-a-snapshot
Request
Body Parameters
project_idstringrequiredpathThe UUID of the project in a multi-tenancy cloud.
snapshotobjectrequiredbodyA snapshot object.
volume_idstringrequiredbodyThe UUID of the volume.
namestringrequiredbodyThe name of the snapshot.
descriptionstringbodyA description for the snapshot. Default is None.
forcebooleanbodyIndicates whether to backup, even if the volume is attached. Default is false.
metadataobjectbodyOne or more metadata key and value pairs for the snapshot.
Sample Request
- cURL
- HTTP
curl -ks -X POST -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
-d '{
"snapshot": {
"name": "snapshot1",
"volume_id": "b0738bcc-3513-4066-852d-c70b8d966ffd",
"force": true
}
}' https://api.vietnix.cloud:8776/v3/f5d834d636c642c7bfe8af86139c6f26/snapshots
POST https://api.vietnix.cloud:8776/v3/f5d834d636c642c7bfe8af86139c6f26/snapshots
with body
{
"snapshot": {
"name": "snapshot1",
"volume_id": "b0738bcc-3513-4066-852d-c70b8d966ffd",
"force": true
}
}
Response
Parameters
snapshotobjectrequiredA snapshot object.
user_idstringrequiredThe UUID of the user. New in version 3.41
volume_idstringrequiredIf the snapshot was created from a volume, the volume ID.
namestringrequiredThe name of the snapshot.
statusstringrequiredThe status for the snapshot.
descriptionstringrequiredA description for the snapshot.
created_atstringrequiredThe date and time when the resource was created. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm. For example, 2015-08-27T09:49:58-05:00. The ±hh value, if included, is the time zone as an offset from UTC.
metadataobjectrequiredOne or more metadata key and value pairs for the snapshot, if any.
idstringrequiredThe snapshot UUID.
sizeintegerrequiredThe size of the volume, in gibibytes (GiB).
countintegerThe total count of requested resource before pagination is applied. New in version 3.45
updated_atstringrequiredThe date and time when the resource was updated. If the resource has not been updated, this field will be null. The date and time stamp format is ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm. For example, 2015-08-27T09:49:58-05:00. The ±hh value, if included, is the time zone as an offset from UTC.
Status Codes
Success
| Code | Reason |
|---|---|
| 202 - Accepted | Request was accepted for processing, but the processing has not been completed. A 'location' header is included in the response which contains a link to check the progress of the request. |
Error
| Code | Reason |
|---|---|
| 400 - Bad Request | Some content in the request was invalid. |
| 404 - Not Found | The requested resource could not be found. |
Sample Response
Response body
{
"snapshot": {
"id": "d54589c3-7e86-47d5-a59d-0eae51dbd992",
"created_at": "2025-10-07T07:19:27.702681",
"updated_at": null,
"name": "snapshot1",
"description": null,
"volume_id": "b0738bcc-3513-4066-852d-c70b8d966ffd",
"volume_type_id": "e9f2ecf9-697f-4af7-b084-8d4d072d7974",
"status": "creating",
"size": 10,
"metadata": {}
}
}