• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. Extension ECS APIs
  5. Status Management
  6. Managing Automatic Recovery of an ECS

Managing Automatic Recovery of an ECS

Function Description

This interface is used to configure or delete automatic recovery of an ECS.

URI

PUT /v1/{project_id}/cloudservers/{server_id}/autorecovery

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

support_auto_recovery

String

Yes

Configures or deletes automatic recovery of an ECS.

  • true: indicates configuring automatic recovery for an ECS.
  • false: indicates deleting automatic recovery of an ECS.

Response

N/A

Examples

  • Example request
    {
        "support_auto_recovery": "true"
    }

Returned Value

See General Request Returned Values.

Error Code

See Error Code Description.