doc-exports/docs/ecs/api-ref/en-us_topic_0067600148.html
Artem Goncharov 3196b64bfc
move doc sources to other location (#3)
move doc sources to other location

Reviewed-by: OpenTelekomCloud Bot <None>
2022-04-27 16:24:25 +00:00

6.7 KiB

Querying Automatic Recovery of an ECS

Function

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

None

Response

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.

Example Request

None

Example Response

GET https://{endpoint}/v1/{project_id}/cloudservers/{server_id}/autorecovery
{ 
   "support_auto_recovery": "true"
}

Error Codes

See Error Codes.