• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Extend Server Actions
  6. Starting an ECS

Starting an ECS

Function Description

This interface is used to start an ECS.

Interface Format

Method

URI

Description

POST

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

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

Starts an ECS.

Restrictions

The ECS must be in the stopped state. That is, the value of the OS-EXT-STS:vm_state attribute of the ECS must be stopped.

Expanded Interface

None

Request Parameter

Table 1 Request Parameter

Parameter

Type

Mandatory

Description

os-start

null

Yes

Starts an ECS.

Response Parameter

N/A

Request Example

POST /v2/d6c277ba8820452e83df36f33c9fa561/servers/44273399-f592-4ec8-b8c7-3d51e444ff34/action
POST /v2.1/d6c277ba8820452e83df36f33c9fa561/servers/44273399-f592-4ec8-b8c7-3d51e444ff34/action
{ 
    "os-start" : null
 }

Response Example

N/A

Returned Values

For details, see section General Request Returned Values.

Error Code

Table 2 Task error code

Error Code

Description

404

Instance could not be found.

This error occurs if the ECS to be operated does not exist.