forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
8.9 KiB
8.9 KiB
Modifying the Specifications of an ECS
Function
ECS specifications can be modified, for example, upgrading the vCPUs and memory, to meet service requirements. This API is used to modify ECS specifications.
An ECS flavor cannot be changed to certain flavors. For details, see Querying the Target Flavors to Which an ECS Flavor Can Be Changed.
Constraints
- You can modify the ECS specifications only when the ECS is stopped.
URI
POST /v1/{project_id}/cloudservers/{server_id}/resize
Table 1 describes the parameters in the URI.
Request
Response
See Responses (Task).
Example Request
POST https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/resize
{ "resize": { "flavorRef": "c3.15xlarge.2" } }
Example Response
None
Returned Values
Error Codes
See Error Codes.
Parent topic: Status Management