Help Center > Elastic Cloud Server > API Reference > ECS Status Management > Modifying the Specifications of an ECS

Modifying the Specifications of an ECS

Function

This interface is used to modify the specifications of an ECS.

URI

  • URI format

    POST /v1/{project_id}/cloudservers/{server_id}/resize

  • Parameter description

    Name

    Mandatory

    Description

    project_id

    Yes

    Specifies the tenant ID.

    server_id

    Yes

    Specifies the ECS ID.

Request

  • Parameter description

    Name

    Mandatory

    Type

    Description

    resize

    Yes

    Dictionary data structure [1]

    Specifies the operation to change the ECS specifications.

  • [1] resize field data structure description

    Name

    Mandatory

    Type

    Description

    flavorRef

    Yes

    String

    Specifies the specifications ID of the ECS after the modification.

  • Example request
    {
    "resize": {
            "flavorRef": "2"
        }
    }

Response

See Response.

Returned Values

See Returned Values.

Registration