Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Huijuan, Wang <wanghuijuan738@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Huijuan, Wang <wanghuijuan738@noreply.gitea.eco.tsi-dev.otc-service.com>
9.6 KiB
Modifying the Specifications of an ECS
Function
This API is used to modify the specifications of an ECS.
For a running ECS, the system will automatically stop the ECS, copy the ECS data to the target node, which can be the source node, and then restart the ECS.
This API supports automatic rollback if the underlying resources are insufficient.
This API must be used with the API for verifying ECS specifications modification (POST /v2.1/{project_id}/servers/{server_id}/action) or the API for rolling back ECS specifications modification (POST /v2.1/{project_id}/servers/{server_id}/action) if an ECS is detected to be in VERIFY_RESIZE state and its OS-EXT-STS:vm_state is RESIZED.
URI
POST /v2.1/{project_id}/servers/{server_id}/action
POST /v2/{project_id}/servers/{server_id}/action
Request
Response
None
Example Request
Change the flavor of a specified ECS to s3.medium.2.
POST https://{endpoint}/v2/{project_id}/servers/{server_id}/action POST https://{endpoint}/v2.1/{project_id}/servers/{server_id}/action { "resize" : { "flavorRef" : "s3.medium.2" } }
Example Response
None