You can call this operation to delete a database instance managed in Database Management (DMS) Enterprise.

This operation only removes database instances from the DMS Enterprise console, rather than discontinuing the instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteInstance

The operation that you want to perform. Set the value to DeleteInstance.

Host String Yes xxx.mysql.rds.aliyuncs.com

The endpoint of the database instance to delete.

Port Integer Yes 3306

The connection port of the database instance to delete.

Tid Long Yes -1

The ID of the tenant in DMS Enterprise.

Sid String No testSid

The system ID (SID) of the database instance to delete.

Response parameters

Examples

Sample requests


http(s)://[Endpoint]/? Action=DeleteInstance
&Host=xxx.mysql.rds.aliyuncs.com
&Port=3306
&Tid=-1
&<Common request parameters>

Sample success responses

XML format

<RequestId>B4B07137-F6AE-4756-8474-7F92BB6C4E04</RequestId>
<Success>true</Success>

JSON format

{
	"RequestId":"B4B07137-F6AE-4756-8474-7F92BB6C4E04",
	"Success":true
}

Error codes

For a list of error codes, visit the API Error Center.