This API is used to query all replication pairs in a specified protection group. If you do not specify the protection group, the system lists all the replication pairs of the tenant.
None
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
server_group_id |
No |
String |
Specifies the ID of a protection group. You can obtain this value by calling the API described in Querying Protection Groups. |
server_group_ids |
No |
Array of strings |
Specifies the protection group ID list. The value is in the following format: server_group_ids=['server_group_id1','server_group_id2',...,'server_group_idx']. Convert it using URL encoding.
|
protected_instance_id |
No |
String |
Specifies the ID of a protected instance. You can obtain this value by calling the API described in Querying Protected Instances. |
protected_instance_ids |
No |
Array of strings |
Specifies the protected instance ID list. The value is in the following format: protected_instance_ids=['protected_instance_id1','protected_instance_id2',...,'protected_instance_idx']. Convert it using URL encoding.
|
name |
No |
String |
Specifies the name of a replication pair. Fuzzy search is supported. |
status |
No |
String |
Specifies the status of a replication pair. For details, see Replication Pair Status. |
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. |
query_type |
No |
String |
Specifies the query type.
|
availability_zone |
No |
String |
Specifies the current production site AZ of the protection group containing the replication pair. You can obtain this value by calling the API described in Querying an Active-Active Domain. |
Parameter |
Type |
Description |
---|---|---|
replications |
Array of objects |
Specifies the information about replication pairs. For details, see Table 1. |
count |
Integer |
Specifies the number of replication pairs. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of a replication pair. |
name |
String |
Specifies the name of a replication pair. |
description |
String |
Specifies the description of a replication pair. |
replication_model |
String |
Specifies the replication mode of a replication pair. The default value is hypermetro, indicating synchronous replication. |
status |
String |
Specifies the status of a replication pair. For details, see Replication Pair Status. |
progress |
Integer |
Specifies the synchronization progress of a replication pair. Unit: % |
replication_status |
String |
Specifies the data synchronization status.
|
attachment |
Array of objects |
Specifies the device name. For details, see Table 2. |
server_group_id |
String |
Specifies the ID of a protection group. |
volume_ids |
String |
Specifies the ID of the disk used to create a replication pair. |
priority_station |
String |
Specifies the current production site AZ of the protection group containing the replication pair.
|
fault_level |
String |
Specifies the fault level of a replication pair.
|
created_at |
String |
Specifies the time when a replication pair was created. The default format is as follows: ""yyyy-MM-ddTHH:mm:ss.SSSSSS", for example, 2019-04-01T12:00:00.000000. |
updated_at |
String |
Specifies the time when a replication pair was updated. The default format is as follows: ""yyyy-MM-ddTHH:mm:ss.SSSSSS", for example, 2019-04-01T12:00:00.000000. |
record_metadata |
Object |
Specifies the SDR data of a replication pair. For details, see Table 3. |
failure_detail |
String |
Specifies the error code returned only when status of a replication pair is error. For details, see the returned value in Error Codes. |
Parameter |
Type |
Description |
---|---|---|
device |
String |
Specifies the device name. |
protected_instance |
String |
Specifies the ID of the protected instance to which the replication pair is attached. |
Parameter |
Type |
Description |
---|---|---|
multiattach |
Boolean |
Specifies whether the disk in a replication pair is a shared disk. |
bootable |
Boolean |
Specifies whether the disk in a replication pair is a system disk. |
volume_size |
Integer |
Specifies the size of the disk in a replication pair. Unit: GB |
volume_type |
String |
Specifies the type of the disk in a replication pair. Currently, the value can be SSD, SAS, SATA, co-p1, uh-l1, GPSSD, or ESSD.
|
{ "count": 1, "replications": [ { "id": "b93bc1c4-67ee-45a1-bc8a-d022fdd28811", "name": "test_replication_name", "description": "description_test", "replication_model": "hypermetro", "status": "available", "progress": 0, "replication_status": "active", "attachment": [ { "device": "/dev/vda", "protected_instance": "8a7a6339-679b-452b-948c-144e0ef85d9e" } ], "server_group_id": "c2aee29a-2959-4d01-9755-01cc76a4d17d", "volume_ids": "48dda0c0-c800-46f2-9728-a519ff783d35,388b324a-a9d1-44a4-a00d-42085f22a9bc", "priority_station": "source", "fault_level": "0", "created_at": "2018-05-04T03:43:24.108526", "updated_at": "2018-05-04T03:44:28.322873", "record_metadata": { "multiattach": false, "bootable": false, "volume_size": 10, "volume_type": "SATA" } } ] }
Or
{ "error": { "message": "XXXX", "code": "XXX" } }
In this example, error represents a general error, including badrequest (shown below) and itemNotFound.
{ "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. |