Scale a Compute instance to a new Instance Type

PUT /instance/{id}:scale

This operation changes the Compute instance's type. Note: the new Instance Type must be within the same family (e.g. a standard instance cannot be scaled to gpu2 or storage).

Path parameters

  • id string(uuid) Required

Body Required

Responses

  • 200 object

    200

    • id string(uuid)

      Operation ID

    • reason string

      Operation failure reason

      Values are incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, or conflict.

    • Related resource reference

      • id string(uuid)

        Reference ID

      • command string

        Command name

    • message string

      Operation message

    • state string

      Operation status

      Values are failure, pending, success, or timeout.

PUT /instance/{id}:scale
curl \
 -X PUT https://api-ch-gva-2.exoscale.com/v2/instance/{id}:scale \
 -H "Content-Type: application/json" \
 -d '{"instance-type":{}}'
Request example
{
  "instance-type": {}
}
Response example (200)
{
  "id": "string",
  "reason": "incorrect",
  "reference": {
    "id": "string",
    "link": "string",
    "command": "string"
  },
  "message": "string",
  "state": "failure"
}