• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Status Management
  6. Unlocking an ECS

Unlocking an ECS

Function Description

This interface is used to unlock an ECS.

After an ECS is unlocked, common users are allowed to manage the ECS.

URI

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

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

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

server_id

Yes

Specifies the ECS ID.

Request

Request parameters

Table 2 describes the request parameters.

Table 2 Request parameters

Parameter

Type

Mandatory

Description

unlock

Null

Yes

Unlocks an ECS.

Response

N/A

Examples

  • Example request
    POST /v2/d6c277ba8820452e83df36f33c9fa561/servers/44273399-f592-4ec8-b8c7-3d51e444ff34/action
    POST /v2.1/d6c277ba8820452e83df36f33c9fa561/servers/44273399-f592-4ec8-b8c7-3d51e444ff34/action
    {
       "unlock": null 
    }
  • Example response

    N/A

Returned Values

See General Request Returned Values.