• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Status Management
  6. Locking an ECS

Locking an ECS

Function

This API is used to lock an ECS.

Tenants are only allowed to lock their own ECSs. After their ECSs are locked, tenants are not allowed to manage the ECSs.

URI

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

lock

Null

Yes

Locks 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
    {
        "lock": null
    }
  • Example response

    N/A

Returned Values

See General Request Returned Values.