Removes a database instance from Data Management (DMS).
Operation description
Note: You can call this operation only to remove a database instance from the instance list of DMS. The instance is not deleted or shut down.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:DeleteInstance |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID. |
3*** |
| Host |
string |
Yes |
The endpoint of the database instance. You can call the ListInstances or GetInstance operation to obtain the endpoint. |
xxx.mysql.rds.aliyuncs.com |
| Port |
integer |
Yes |
The port number that is used to connect to the database instance. You can call the ListInstances or GetInstance operation to obtain the port number. |
3306 |
| Sid |
string |
No |
The system ID (SID) of the database instance. You can call the ListInstances or GetInstance operation to obtain the SID. |
testSid |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
B4B07137-F6AE-4756-8474-7F92BB6C4E04 |
| ErrorCode |
string |
The error code that is returned. |
UnknownError |
| ErrorMessage |
string |
The error message that is returned. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "B4B07137-F6AE-4756-8474-7F92BB6C4E04",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.