Volume Management (Block Storage).
Retrieve volume's events
/volumes/{id}/events
Returns a list of the current volume’s events
Retrieve the custom metadata of a storage volume
/storage/{id}/customdata
Provides the custom metadata stored for this storage volume in json format
Retrieve all volume attachment
/storage/{id}/attachments
Returns a list of the current volume’s attachments.
Attach your volume
/storage/{id}/attachments
Attach your volume to a device.
Retrieve an attachment
/storage/attachments/{id}
Returns a single attachment if the user has access
Detach volume
/storage/attachments/{id}
Detach volume.
Retrieve all volume snapshot
/storage/{id}/snapshots
Returns a list of the current volume’s snapshots. To create Volume Snapshots, please check the Volume Snapshot Policies feature.
Delete volume snapshot
/storage/{volume_id}/snapshots/{id}
Delete volume snapshot.
Create a volume snapshot policy
/storage/{id}/snapshot-policies
Creates a new snapshot policy of your volume.
Update the volume snapshot policy
/storage/snapshot-policies/{id}
Updates the volume snapshot policy.
Delete the volume snapshot policy
/storage/snapshot-policies/{id}
Deletes the volume snapshot policy.
Retrieve all volumes
/projects/{id}/storage
Returns a list of the current projects’s volumes.
Create a volume
/projects/{id}/storage
Creates a new volume in our datacenter. The valid attribute values for plan
and facility
are:
"facility": "ams1", "ewr1", "nrt1", "sjc1"
"plan": "storage_1" (Standard), "storage_2" (Performance)
Retrieve a volume
/storage/{id}
Returns a single volume if the user has access
Update the volume
/storage/{id}
Updates the volume.
Delete the volume
/storage/{id}
Deletes the volume.
Restore volume
/storage/{id}/restore
Restore the volume to the given snapshot.
Clone volume/snapshot
/storage/{id}/clone
Clone your volume or snapshot into a new volume. To clone the volume, send an empty body. To promote a volume snapshot into a new volume, include the snapshot_timestamp attribute in the request body.