• Native OpenStack API

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

Locking an ECS

Function Description

This interface 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

  • 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.

Restrictions

N/A

Extension Description

N/A

Request

Parameter

Type

Mandatory

Description

lock

Null

Yes

Locks an ECS.

Response

N/A

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.