Block Storage API Product
Retrieve a list of Volumes for the currently authenticated tenant.
| expand | Array of strings (Expand) Default: "" You can get more detailed info about: ['volume_type', 'attachment'] |
| _limit | integer ( Limit) > 0 Default: 50 |
| _offset | integer ( Offset) >= 0 Default: 0 |
| _sort | string ( Sort) ^(^[\w-]+:(asc|desc)(,[\w-]+:(asc|desc))*)?$ Default: "created_at:asc" |
Name (string) or Name (null) (Name) |
| x-tenant-id required | string (X-Tenant-Id) |
{- "volumes": [
- {
- "attachment": {
- "attached_at": "2022-01-01T00:00:10Z",
- "device": "/dev/vdb",
- "instance": {
- "created_at": "2022-01-01T00:00:10Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "machine name",
- "state": "running",
- "status": "completed",
- "updated_at": "2022-01-01T00:00:10Z"
}
}, - "availability_zones": [
- "br-ne1-a"
], - "created_at": "2022-01-01T00:00:10Z",
- "error": {
- "message": "You have reached the limit of allowed disks. Please, remove unused disks or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "volume name",
- "size": 10,
- "state": "in-use",
- "status": "completed",
- "type": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}, - "updated_at": "2022-01-01T00:00:10Z"
}
]
}Create a Volume for the currently authenticated tenant.
The Volume can be used when it reaches the "available" state and "completed" status.
| x-tenant-id required | string (X-Tenant-Id) |
| name required | string (Name) [ 3 .. 50 ] characters |
| size required | integer (Size) [ 10 .. 2147483648 ] Gibibytes (GiB) |
required | IdRequest (object) or Name (object) (Type) |
IdRequest (object) or Name (object) or Backup (null) (Backup) | |
IdRequest (object) or Name (object) or Snapshot (null) (Snapshot) | |
Availability Zone (string) or Availability Zone (null) (Availability Zone) |
{- "availability_zone": "br-se1-a",
- "backup": {
- "name": "my_backup_name"
}, - "name": "volume-name",
- "size": 10,
- "snapshot": {
- "name": "my_snapshot_name"
}, - "type": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Delete a Volume for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Retrieve details of a Volume for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| expand | Array of strings (Expand) Default: "" You can get more detailed info about: ['volume_type', 'attachment'] |
| x-tenant-id required | string (X-Tenant-Id) |
{- "attachment": {
- "attached_at": "2022-01-01T00:00:10Z",
- "device": "/dev/vdb",
- "instance": {
- "created_at": "2022-01-01T00:00:10Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "machine name",
- "state": "running",
- "status": "completed",
- "updated_at": "2022-01-01T00:00:10Z"
}
}, - "availability_zones": [
- "br-ne1-a"
], - "created_at": "2022-01-01T00:00:10Z",
- "error": {
- "message": "You have reached the limit of allowed disks. Please, remove unused disks or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "volume name",
- "size": 10,
- "state": "in-use",
- "status": "completed",
- "type": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}, - "updated_at": "2022-01-01T00:00:10Z"
}Attach a Volume to a Virtual Machine instance for the currently authenticated tenant.
The Volume attachment will be completed when the Volume status returns to "completed", and the state becomes "in-use".
| id required | string <uuid> (Id) |
| virtual_machine_id required | string <uuid> (Virtual Machine Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Detach a Volume from a Virtual Machine instance for the currently authenticated tenant.
The Volume detachment will be completed when the Volume state returns to "available," and the status becomes "completed".
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Extend the size of an existing Volume for the currently authenticated tenant.
The Volume extension will be completed when the Volume status returns to "completed".
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
| size required | integer (Size) > 0 New volume size in GB |
{- "size": 20
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Rename a Volume for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
| name required | string (Name) [ 3 .. 50 ] characters |
{- "name": "volume-name"
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Change the Volume Type of an existing Volume for the currently authenticated tenant.
The Volume retype will be completed when the Volume status returns to "completed".
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
required | IdRequest (object) or Name (object) (New Type) | ||
Any of
| |||
{- "new_type": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]List Volume Types allowed in the current region.
Availability-Zone (string) or Availability-Zone (null) (Availability-Zone) |
| x-tenant-id required | string (X-Tenant-Id) |
{- "types": [
- {
- "availability_zones": [
- "a"
], - "disk_type": "nvme",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "iops": {
- "read": 1000,
- "total": 1000,
- "write": 1000
}, - "name": "my_volume_type",
- "status": "active"
}
]
}Retrieve a list of Snapshots for the currently authenticated tenant.
| expand | Array of strings (Expand) Default: "" Items Value: "volume" |
| _limit | integer ( Limit) > 0 Default: 50 |
| _offset | integer ( Offset) >= 0 Default: 0 |
| _sort | string ( Sort) ^(^[\w-]+:(asc|desc)(,[\w-]+:(asc|desc))*)?$ Default: "created_at:asc" |
Name (string) or Name (null) (Name) |
| x-tenant-id required | string (X-Tenant-Id) |
{- "snapshots": [
- {
- "availability_zones": [
- "br-ne1-a"
], - "created_at": "2022-01-01T00:00:10Z",
- "description": "my snapshot for testing",
- "error": {
- "message": "You have reached the limit of allowed snapshots. Please, remove unused snapshots or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My snapshot",
- "size": 10,
- "state": "available",
- "status": "completed",
- "updated_at": "2022-01-01T00:00:10Z",
- "volume": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
]
}Create a Snapshot for the currently authenticated tenant.
The Snapshot can be used when it reaches the "available" state and the "completed" status.
| x-tenant-id required | string (X-Tenant-Id) |
| name required | string (Name) [ 3 .. 50 ] characters |
required | IdRequest (object) or Name (object) (Volume) |
required | Description (string) or Description (null) (Description) |
{- "description": "my-snapshot",
- "name": "snapshot-name",
- "volume": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Delete a Snapshot for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Retrieve details of a Snapshot for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| expand | Array of strings (Expand) Default: "" Items Value: "volume" |
| x-tenant-id required | string (X-Tenant-Id) |
{- "availability_zones": [
- "br-ne1-a"
], - "created_at": "2022-01-01T00:00:10Z",
- "description": "my snapshot for testing",
- "error": {
- "message": "You have reached the limit of allowed snapshots. Please, remove unused snapshots or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My snapshot",
- "size": 10,
- "state": "available",
- "status": "completed",
- "updated_at": "2022-01-01T00:00:10Z",
- "volume": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}Rename a Snapshot for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
| name required | string (Name) [ 3 .. 50 ] characters |
{- "name": "snapshot-name"
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Retrieve usage for specific quota_slug (disk & volumes)
Quota Slug (string) or Quota Slug (null) (Quota Slug) |
| x-tenant-id required | string (X-Tenant-Id) |
{- "results": [
- {
- "quota_slug": "disk",
- "used": 10
}
]
}Attach a Volume to a Virtual Machine instance for the currently authenticated tenant.
The Volume attachment will be completed when the Volume status returns to "completed", and the state becomes "in-use".
| x-tenant-id required | string (X-Tenant-Id) |
required | object (IdRequest) |
required | object (IdRequest) |
Device (string) or Device (null) (Device) |
{- "device": "/dev/vdc",
- "instance": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}, - "volume": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Detach a Volume from a Virtual Machine instance for the currently authenticated tenant.
The Volume detachment will be completed when the Volume state returns to "available," and the status becomes "completed".
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Retrieve a list of Backups for the currently authenticated tenant.
| expand | Array of strings (Expand) Default: "" Items Value: "volume" |
| _limit | integer ( Limit) > 0 Default: 50 |
| _offset | integer ( Offset) >= 0 Default: 0 |
| _sort | string ( Sort) ^(^[\w-]+:(asc|desc)(,[\w-]+:(asc|desc))*)?$ Default: "created_at:asc" |
Name (string) or Name (null) (Name) |
| x-tenant-id required | string (X-Tenant-Id) |
{- "backups": [
- {
- "created_at": "2022-01-01T00:00:10Z",
- "description": "my backup for testing",
- "error": {
- "message": "You have reached the limit of allowed backups. Please, remove unused backups or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "c2ea3568-0298-43ea-986a-f27ce3cf182b",
- "name": "My backup",
- "size": 10,
- "source_backup": {
- "id": "c9bb8b62-87d3-4c2a-864a-945d242f10ac"
}, - "state": "available",
- "status": "completed",
- "type": "incremental",
- "updated_at": "2022-01-01T00:00:10Z",
- "volume": {
- "id": "351d14b4-0ea4-49fb-bc93-18e9966149c7"
}
}
]
}Create a backup for the currently authenticated tenant.
The Backup can be used when it reaches the "available" state and the "completed" status.
| x-tenant-id required | string (X-Tenant-Id) |
Description (string) or Description (null) (Description) | |
required | IdRequest (object) or Name (object) (Volume) |
| name required | string (Name) |
| type | string (BackupType) Default: "full" Enum: "full" "incremental" |
{- "description": "my-backup",
- "name": "backup name",
- "type": "full",
- "volume": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}{- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}Copy a backup cross region for the currently authenticated tenant.
| x-tenant-id required | string (X-Tenant-Id) |
| destiny_region required | string (Destiny Region) [ 1 .. 255 ] characters |
required | object (BackupIdRequest) |
{- "backup": {
- "name": "backup-tomato"
}, - "destiny_region": "br-ne1"
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Delete a Backup for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]Retrieve details of a Backup for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| expand | Array of strings (Expand) Default: "" Items Value: "volume" |
| x-tenant-id required | string (X-Tenant-Id) |
{- "created_at": "2022-01-01T00:00:10Z",
- "description": "my backup for testing",
- "error": {
- "message": "You have reached the limit of allowed backups. Please, remove unused backups or contact support to increase your quota.",
- "slug": "creating_error_quota"
}, - "id": "c2ea3568-0298-43ea-986a-f27ce3cf182b",
- "name": "My backup",
- "size": 10,
- "source_backup": {
- "id": "c9bb8b62-87d3-4c2a-864a-945d242f10ac"
}, - "state": "available",
- "status": "completed",
- "type": "incremental",
- "updated_at": "2022-01-01T00:00:10Z",
- "volume": {
- "id": "351d14b4-0ea4-49fb-bc93-18e9966149c7"
}
}Patches a Backup for the currently authenticated tenant.
| id required | string <uuid> (Id) |
| x-tenant-id required | string (X-Tenant-Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) |
{- "description": "new description to my resource",
- "name": "new name to my resource"
}[- {
- "detail": { },
- "message": "Something went wrong",
- "slug": "generic"
}
]