• Native OpenStack API

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

Reboot Server

Function Description

This interface is used to restart a single ECS.

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

    reboot

    Yes

    Dictionary data structure

    Specifies the operation to restart the ECS. For details, see Table 1.

    Table 1 reboot field description

    Parameter

    Mandatory

    Type

    Description

    type

    Yes

    String

    Specifies the type of the restart operation.

    • SOFT: soft restart
    • HARD: forcible restart (hard restart)
  • Example request
    {
        "reboot": {
            "type": "SOFT"
        }
                }

Response

N/A

Returned Values

See General Request Returned Values.