Volumes
Create volume
Create a new volume in the project and region. The volume can be created from scratch, from an image, or from a snapshot. Optionally attach the volume to an instance during creation.
post/cloud/v1/volumes/{project_id}/{region_id}
Path parameters
project_idinteger required
Project ID
Example:1
Project ID
region_idinteger required
Region ID
Example:1
Region ID
Request body
Example request
{
"attachment_tag": "device-tag",
"image_id": "169942e0-9b53-42df-95ef-1a8b6525c2bd",
"instance_id_to_attach_to": "88f3e0bd-ca86-4cf7-be8b-dd2988e23c2d",
"lifecycle_policy_ids": [
1,
2
],
"name": "volume-1",
"size": 10,
"source": "image"
}Response
OK
Example response
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}