• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Server Actions
  6. Resize Server

Resize Server

Function Description

This interface 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 interface is not used independently. It must be used together with POST /v2/{tenant_id}/servers/{server_id}/action or POST /v2/{tenant_id}/servers/{server_id}/action.

URI

  • URI format

    POST /v2/{tenant_id}/servers/{server_id}/action

    POST /v2.1/{tenant_id}/servers/{server_id}/action

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

    server_id

    Yes

    Specifies the ECS ID.

Request

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    flavorRef

    Yes

    String

    Specifies the new flavor ID or URI.

    dedicated_host_id

    No

    String

    Specifies the new DeH ID, which is applicable only to the ECSs on DeHs.

  • Example request
    {
        "resize" : {
            "flavorRef" : "4",
            "dedicated_host_id": "459a2b9d-804a-4745-ab19-a113bb1b4ddc"
        }
    }

Response

N/A

Returned Value

See General Request Returned Values.