Removing the DR Relationship from a DB Instance
Function
This API is used to remove the DR relationship from a DB instance.
- Before calling this API, learn how to authenticate it.
- Before calling this API, learn about request header parameters.
Authorization Information
- If you are using role/policy-based authorization, see Permissions and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.
Constraints
- Cross-cloud or cross-region DR relationships can be removed only for RDS for PostgreSQL 12 and later versions.
- The DR relationship must be removed from the DR instance first and then the primary instance. Otherwise, your DB instance may not run properly.
URI
- URI format
DELETE /v3/{project_id}/instances/{instance_id}/delete-disaster-recovery
- Parameter description
Parameter
Mandatory
Description
project_id
Yes
Definition
Project ID of a tenant in a region.
To obtain the value, see Obtaining a Project ID.
Constraints
N/A
Range
N/A
Default Value
N/A
instance_id
Yes
Definition
Instance ID.
Constraints
N/A
Range
N/A
Default Value
N/A
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
target_instance_id |
Yes |
String |
Definition ID of the target instance. Constraints N/A Range N/A Default Value N/A |
|
target_project_id |
Yes |
String |
Definition ID of the project that the target instance belongs to. Constraints N/A Range N/A Default Value N/A |
|
target_region |
Yes |
String |
Definition Region where the target instance is located. Constraints N/A Range N/A Default Value N/A |
|
target_ip |
Yes |
String |
Definition Floating IP address of the target instance. Constraints N/A Range N/A Default Value N/A |
|
is_master |
Yes |
Boolean |
Definition Whether the operation object is the primary instance. Constraints N/A Range
Default Value N/A |
Example Request
Remove the DR relationship from a DB instance.
DELETE https://{endpoint}/v3/054e292c9880d4992f02c0196d3ea468/instances/42d4b4fc17d144bbb3ba64a306e68c72in03/delete-disaster-recovery
{
"target_instance_id" : "8c08eda627cc4344aca26832c87ff16cin03",
"target_project_id" : "0ddd1dbcb3494d3dbdb614b39104760b",
"target_region" : "cn-southwest-244b",
"target_ip" : "192.168.2.70",
"is_master" : true
}
Response
- Normal response
Table 2 Parameters Parameter
Type
Description
job_id
String
Definition
Taskflow ID.
Range
N/A
- Example normal response
{ "job_id": "64a5083a-d8e0-4cee-b086-5c2a776ee92d" } - Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot