• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Cinder V3 Interfaces
  5. Volumes
  6. Extend Volume Size

Extend Volume Size

Function Description

This interface is used to expand the volume size.

Interface Format

Method

URI

Description

POST

/v3/{project_id}/volumes/{volume_id}/action

The key value in the body field is set to os-extend.

Restrictions

The volume must be available.

Extension Description

Request Parameter

Parameter

Type

Mandatory

Remarks

new_size

Int

Yes

Specifies the expanded volume size. The value must be greater than the size of the original volume.

Response Parameter

N/A

Request Example

POST https://volume.localdomain.com:8776/v3/fa9acd30b02d4704bbd62cd6fb24fe01/volumes/ff9920a4-8d7a-49a9-9991-e28e355588cf/action
Body:
{
    "os-extend":{
        "new_size":100
    }
}

Response Example

N/A

Error Code

See section Processing Return Code.