• Elastic Cloud Server

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

Querying Automatic Recovery of an ECS

Function Description

This interface is used to query automatic recovery configured for an ECS.

URI

GET /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

N/A

Response

Response parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

support_auto_recovery

String

Queries automatic recovery configured for an ECS.

  • true: indicates that automatic recovery is configured for an ECS.
  • false: indicates that automatic recovery is not configured for an ECS.

Examples

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

Returned Value

See General Request Returned Values.

Error Code

See Error Code Description.