• Native OpenStack API

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

Extend Volume Size

Function Description

This interface is used to extend the volume size.

Interface Format

Method

URI

Description

POST

/v2/{tenant_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

url:
POST /v2/b84c367e4d1047fc9b54f28b400ddbc2/volumes/da4f9c7a-c275-4bc9-80c4-76c7d479a218/action
Body:
{
    "os-extend":{
        "new_size":100
    }
}

Response Example

N/A

Error Code

See section Processing Return Code.