For an EVS disk that has been created, you can call this API to expand the disk capacity if the disk space is insufficient.
Query the disk list, obtain the ID of the target disk, and then expand the disk capacity.
To meet the preceding requirements, call the following APIs:
URI format: GET /v3/{project_id}/volumes
For details, see OpenStack Cinder API v3 > EVS Disk > Querying EVS Disks in the Elastic Volume Service API Reference.
{ "volumes": [ { "id": "6b604cef-9bd8-4f5a-ae56-45839e6e1f0a", "links": [ { "href": "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes/6b604cef-9bd8-4f5a-ae56-45839e6e1f0a", "rel": "self" }, { "href": "https://volume.localdomain.com:8776/dd14c6ac581f40059e27f5320b60bf2f/volumes/6b604cef-9bd8-4f5a-ae56-45839e6e1f0a", "rel": "bookmark" } ], "name": "zjb_u25_test" }, { "id": "2bce4552-9a7d-48fa-8484-abbbf64b206e", "links": [ { "href": "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes/2bce4552-9a7d-48fa-8484-abbbf64b206e", "rel": "self" }, { "href": "https://volume.localdomain.com:8776/dd14c6ac581f40059e27f5320b60bf2f/volumes/2bce4552-9a7d-48fa-8484-abbbf64b206e", "rel": "bookmark" } ], "name": "zjb_u25_test" }, { "id": "3f1b98ec-a8b5-4e92-a727-88def62d5ad3", "links": [ { "href": "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes/3f1b98ec-a8b5-4e92-a727-88def62d5ad3", "rel": "self" }, { "href": "https://volume.localdomain.com:8776/dd14c6ac581f40059e27f5320b60bf2f/volumes/3f1b98ec-a8b5-4e92-a727-88def62d5ad3", "rel": "bookmark" } ], "name": "zjb_u25_test" } ], "volumes_links": [ { "href": "https://volume.localdomain.com:8776/v2/dd14c6ac581f40059e27f5320b60bf2f/volumes?limit=3&marker=3f1b98ec-a8b5-4e92-a727-88def62d5ad3", "rel": "next" } ] }
URI format: POST /v3/{project_id}/volumes/{volume_id}/action
For details, see OpenStack Cinder API v3 > EVS Disk Actions > Expanding the Capacity of an EVS Disk in the Elastic Volume Service API Reference.
POST /v3/000efdc5f9064584b718b181df137bd7/ volumes/9ab74d89-61e7-4259-8546-465fdebe4944/ action
{ "os-extend": { "new_size": 100 } }
{ "error": { "message": "XXXX", "code": "XXX" } }
{ "badRequest": { "message": "XXXX", "code": "XXX" } }