This API is used to query all DR drills in a specified protection group. If you do not specify the protection group, the system lists all the DR drills of the tenant.
None
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
server_group_id |
No |
String |
Specifies the ID of a protection group. For details, see Querying Protection Groups. |
name |
No |
String |
Specifies the DR drill name. Fuzzy search is supported. |
status |
No |
String |
Specifies the DR drill status. For details, see DR Drill Status. |
drill_vpc_id |
No |
String |
Specifies the ID of the VPC used for a DR drill. |
limit |
No |
Integer |
Specifies the maximum number of results returned each time. The value is a positive integer from 0 to 1000. The default value is 1000. |
offset |
No |
Integer |
Specifies the offset of each request. The default value is 0. The value must be a number and cannot be negative. |
Parameter |
Type |
Description |
---|---|---|
disaster_recovery_drills |
Array of objects |
Specifies the DR drills. For details, see Table 1. |
count |
Integer |
Specifies the number of DR drills. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the DR drill ID. |
name |
String |
Specifies the DR drill name. |
status |
String |
Specifies the DR drill status. For details, see DR Drill Status. |
server_group_id |
String |
Specifies the ID of a protection group. |
drill_vpc_id |
String |
Specifies the ID of the VPC used for a DR drill. |
created_at |
String |
Specifies the time when a DR drill was created. The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000. |
updated_at |
String |
Specifies the time when a DR drill was updated. The default format is as follows: "yyyy-MM-dd HH:mm:ss.SSS", for example, 2019-04-01 12:00:00.000. |
drill_servers |
Array of objects |
Specifies the drill servers. For details, see Table 2. |
{ "count": 2, "disaster_recovery_drills": [ { "id": "e472d26f-9624-42fb-8bfc-717d4714c225", "name": "dr_drill_test", "status": "available", "server_group_id": "c2aee29a-2959-4d01-9755-01cc76a4d17d", "drill_vpc_id": "7881f1d2-1f41-419c-873a-14ac620bc46e", "created_at": "2018-07-18 06:41:58.681", "updated_at": "2018-07-18 09:41:14.677", "drill_servers": [ { "protected_instance": "d08ca8d7-a784-41ae-b32a-c592943f5dfc", "drill_server_id": "9de0439a-4ee4-4199-919a-44afd20952dc" }, { "protected_instance": "ea308e8b-043c-4fc6-a53c-856eae137b13", "drill_server_id": "3eaa1c70-9719-4eb5-b577-cb92ddbffd03" } ] }, { "id": "f96ac55f-35dd-4cc3-ba61-36c168900c99", "name": "drill_test", "status": "available", "server_group_id": "3a60f45d-cf5b-49f1-a05e-ddee78cb6eef", "drill_vpc_id": "ac784bd6-a79c-4def-9ff8-dc87940d5335", "created_at": "2018-07-17 22:38:21.111", "updated_at": "2018-07-17 22:47:54.845", "drill_servers": [] } ] }
{ "error": { "message": "XXXX", "code": "XXX" } }
{ "badrequest": { "message": "XXXX", "code": "XXX" } }
Returned Value |
Description |
---|---|
200 |
The server has accepted the request. |
Returned Value |
Description |
---|---|
400 Bad Request |
The server failed to process the request. |
401 Unauthorized |
You must enter a username and the password to access the requested page. |
403 Forbidden |
You are forbidden to access the requested page. |
404 Not Found |
The server could not find the requested page. |
405 Method Not Allowed |
You are not allowed to use the method specified in the request. |
406 Not Acceptable |
The response generated by the server could not be accepted by the client. |
407 Proxy Authentication Required |
You must use the proxy server for authentication so that the request can be processed. |
408 Request Timeout |
The request timed out. |
409 Conflict |
The request could not be processed due to a conflict. |
500 Internal Server Error |
Failed to complete the request because of a service error. |
501 Not Implemented |
Failed to complete the request because the server does not support the requested function. |
502 Bad Gateway |
Failed to complete the request because the server receives an invalid response from an upstream server. |
503 Service Unavailable |
Failed to complete the request because the system is unavailable. |
504 Gateway Timeout |
A gateway timeout error occurred. |