Block Storage
Block Storage is similar to a physical hard disk. It can be used to install an operating system or hold another filesystem for a Cloud Server.
Writable Block Storage and CD-ROM resources can be freely attached to any Cloud Server within the same zone and under the same account. A maximum of 16 storage devices can be attached to a Cloud Server at the same time; however, the combined limit for network interfaces and storage devices is 24.
Storage resource types
There are four different storage resource types: normal, CD-ROM, template, and backup. The normal type represents writable Block Storage.
List storage resources
Returns all storage resources accessible to the account. The results can be filtered by labels or a title and UUID search, sorted, and paginated.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List storage resources › Responses
A list of storage resources
Create Block Storage
Creates a block storage resource in a specific zone. The new block storage is not attached to a Cloud Server.
Create Block Storage › Request Body
Block storage creation parameters.
Create Block Storage › Responses
Block storage created
Detailed information about a storage resource.
List storage backups
Returns accessible storage resources whose type is backup.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List storage backups › Responses
A list of storage resources
List CD-ROM images
Returns accessible storage resources whose type is cdrom.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List CD-ROM images › Responses
A list of storage resources
List favorite storage resources
List normal Block Storage
Returns accessible Block Storage resources whose type is normal.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List normal Block Storage › Responses
A list of storage resources
List private storage resources
Returns accessible storage resources whose access type is private.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List private storage resources › Responses
A list of storage resources
List public storage resources
Returns accessible storage resources whose access type is public.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List public storage resources › Responses
A list of storage resources
List storage templates
Returns accessible storage resources whose type is template.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List storage templates › Responses
A list of storage resources
List storage resources by type and access
Returns accessible storage resources matching both the requested storage type and access type.
path Parameters
typeStorage resource type to return.
Storage resource type to return.
accessStorage resource access type to return.
Storage resource access type to return.
query Parameters
label^(?!_)[\x20-\x3C\x3E…Filter by label key or key-value pair. Repeat the parameter to require multiple labels; label keys are matched case-insensitively.
Label key or key-value pair to match. A key-only filter matches any value. Repeat the query parameter to require all specified labels; keys are matched case-insensitively.
search^[^<>]+$Search storage resource titles and UUIDs by partial match.
Partial match against the storage resource title or UUID.
sort_byField by which to sort the results.
Storage resource field by which to sort the results.
order_bySort direction. Used only when sort_by is specified.
Sort direction. This parameter is used only when sort_by is specified.
limitMaximum number of storage resources to return.
Maximum number of storage resources to return. Default is 25.
offsetNumber of storage resources to skip before returning results.
Number of items to skip before starting to return results. Default is 0.
List storage resources by type and access › Responses
A list of storage resources
Get storage resource details
Returns detailed information about a storage resource, including its current state, attachments, labels, and backup configuration when applicable.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Get storage resource details › Responses
Storage resource details
Detailed information about a storage resource.
Modify Block Storage
Modifies a block storage title, labels, automatic backup rule, or size. A new size must be greater than the current size. Set filesystem_resize to yes to also resize the last partition and its supported filesystem after increasing the block storage size.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBlock storage UUID
Universally unique identifier
Modify Block Storage › Request Body
Block storage properties to modify.
Modify Block Storage › Responses
Block storage modified
Detailed information about a storage resource.
Detailed information about a storage resource.
Delete storage resource
Schedules an unattached private storage resource for deletion. Associated backups are kept by default unless another backup policy is selected.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
query Parameters
backupsPolicy for handling backups when deleting a storage resource. Defaults to keep. Allowed values: keep, delete, keep_latest
Delete storage resource › Responses
Storage resource deleted
Attach storage to a Cloud Server
Attaches the storage resource to a Cloud Server in the same zone. The device defaults to a disk at the next available address. IDE and CD-ROM devices can be attached only while the Cloud Server is stopped; SCSI and VirtIO disks can also be attached while it is running.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Attach storage to a Cloud Server › Request Body
Parameters for attaching this storage resource to a Cloud Server in the same zone.
Attach storage to a Cloud Server › Responses
Storage resource attached to Cloud Server
Detailed information about a storage resource.
Create on-demand backup
Creates a point-in-time backup of private normal block storage. The operation is asynchronous: the source block storage is backuping while the backup is created, and the returned backup remains in maintenance until it is ready.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBlock storage UUID
Universally unique identifier
Create on-demand backup › Request Body
Parameters for the point-in-time backup.
Create on-demand backup › Responses
On-demand backup created
Detailed information about a storage resource.
Cancel Block Storage operation
Requests cancellation of an interruptible operation on block storage in the maintenance state. For a running clone, cancellation removes the incomplete copy and returns the source block storage to the online state.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBlock storage UUID
Universally unique identifier
Cancel Block Storage operation › Responses
Block storage operation cancelled
Clone Block Storage
Creates a Block Storage copy of a storage resource. Cloning is asynchronous: the returned block storage remains in the maintenance state until the operation completes and can be monitored with the storage resource details endpoint.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Clone Block Storage › Request Body
Parameters for the cloned block storage.
Clone Block Storage › Responses
Block storage cloned
Detailed information about a storage resource.
Detach storage from a Cloud Server
Detaches the storage resource from its attached Cloud Server. IDE and CD-ROM devices can be detached only while the Cloud Server is stopped; SCSI and VirtIO disks can also be detached while it is running. If the storage resource is already detached, it is returned unchanged.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Detach storage from a Cloud Server › Responses
Storage resource detached from Cloud Server
Detailed information about a storage resource.
Add storage resource to favorites
Adds an accessible storage resource to the account's favorites. The operation succeeds if the storage resource is already a favorite.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Add storage resource to favorites › Responses
Storage resource added to favorites
Remove storage resource from favorites
Removes an accessible storage resource from the account's favorites. The operation succeeds if the storage resource is not a favorite.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredStorage resource UUID
Universally unique identifier
Remove storage resource from favorites › Responses
Storage resource removed from favorites
Resize Block Storage partition and filesystem
Resizes the last partition and its supported filesystem to use the block storage capacity already available. A backup is created before the operation and returned on success. Increase the block storage capacity first with the modify block storage endpoint.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBlock storage UUID
Universally unique identifier
Resize Block Storage partition and filesystem › Responses
Block storage resize started
Detailed information about a storage resource.
Restore Block Storage from backup
Starts restoring the backup identified by uuid to its origin block storage. If the origin block storage is attached to a Cloud Server, the Cloud Server must be stopped.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBackup UUID
Universally unique identifier
Restore Block Storage from backup › Responses
Block storage restore started
Create template from Block Storage
Creates a private template from private normal block storage. The operation is asynchronous: the returned template remains in maintenance until it is ready. Deployments from the template use the source block storage tier.
path Parameters
uuid^[0-9a-f]{8}-[0-9a-f… · requiredBlock storage UUID
Universally unique identifier
Create template from Block Storage › Request Body
Parameters for creating a template from the block storage.
Create template from Block Storage › Responses
Template created
Detailed information about a storage resource.