API
Block Storage
Resize volume

Resize Volume

  • Name
    put
    Type
    /v1/volumes/:id
    Description

    You can get a list of volumes associated with your account by sending a GET.

Request

Required Attributes

  • Name
    action
    Type
    string
    Description

    Action performed on a volume (attache, detach, resize, rename) in this case resize.

  • Name
    size_gigabytes
    Type
    integer
    Description

    The volume size in gigabytes.

Example

curl -X PUT "https://api.simplystack.com/v1/volumes/6c848d7f-0389-4fdf-95bf-7d4d58d9cc04" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"action": "detach"}'

Response

JSON object with key named volume with the following identifiers:

Attributes

See volume model.

Example

json
{
  "volume": {
    "id": "6c848d7f-0389-4fdf-95bf-7d4d58d9cc04",
    "name": "volume01",
    "created_at": "2020-01-07T18:37:45.190194Z",
    "task": {
      "id": 5,
      "name": "resize",
      "description": {
        "completed": "Volume was resized.",
        "progress": "Volume is resizing."
      }
    }
    "region": {
      "available": true,
      "features": [
          "floating_ips"
      ],
      "name": "Frankfurt",
      "slug": "fra"
    },
    "size": 10737418240,
    "size_gigabytes": 10.0,
    "stacklet": {...}
  }
}