This API is used to change the name of a replication pair.
None
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
replication_id |
Yes |
String |
Specifies the ID of a replication pair. You can obtain this value by calling the API described in Querying Replication Pairs. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
replication |
Yes |
Object |
Specifies the information about a replication pair. For details, see Table 1. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Specifies the name of a replication pair.
|
Parameter |
Type |
Description |
---|---|---|
replication |
Object |
Specifies the information about a replication pair. For details, see Table 2. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the ID of a replication pair. |
name |
String |
Specifies the name of a replication pair. The name can contain a maximum of 64 bytes consisting of only letters (a to z and A to Z), digits (0 to 9), decimal points (.), underscores (_), and hyphens (-). |
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 3. |
volume_ids |
String |
Specifies the ID of the disk used to create a replication pair. |
server_group_id |
String |
Specifies the ID of a protection group. |
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 4. |
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 |
---|---|---|
protected_instance |
String |
Specifies the ID of the protected instance to which the replication pair is attached. |
device |
String |
Specifies the device name. |
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.
|
{ "replication": { "id": "b93bc1c4-67ee-45a1-bc8a-d022fdd28811", "name": "new_name", "description": "test_description", "replication_model": "hypermetro", "status": "available", "progress": 0, "replication_status": "active", "attachment": [ { "device": "/dev/vda", "protected_instance": "8a7a6339-679b-452b-948c-144e0ef85d9c" } ], "volume_ids": "48dda0c0-c800-46f2-9728-a519ff783d35,388b324a-a9d1-44a4-a00d-42085f22a9bc", "server_group_id": "0000000062d194520162d196f0fe0007", "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. |