Description
When you fininsh resizing a VM by this API command, VM status will change to "VERIFY_RESIZE"."
Request URL
Compute API v2.0 POST /v2/{tenant_id}/servers/{server_id}/action
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | User Token | header | |
tenant_id | URI | ||
server_id | URI | ||
flavorRef | Flavor ID | plain |
※The parameter of "OS-DCF:diskConfig" will automatically be set up to "AUTO".
Request Json
{ "resize": { "flavorRef": "74fe02ef-ecee-447f-b32f-2fd2e03c4e61" } }
Normal response codes
202
Example
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 35941e7df872405d84e5b026dba8323c" \ -d '{"resize": {"flavorRef": "294639c7-72ba-43a5-8ff2-513c8995b869"}}' \ https://compute.tyo1.cloud.z.com/v2/1864e71d2deb46f6b47526b69c65a45d/servers/e25b3611-96df-4514-a54b-7729aec48dc1/action
HTTP/1.1 202 Accepted Date: Fri, 12 Dec 2014 00:51:49 GMT Server: Apache Content-Length: 0 Content-Type: application/json