DeleteDatabase

Updated at:

Deletes a database from a database gateway.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the database instance.

db-22h1qa9d452f****

Response elements

Element

Type

Description

Example

object

The response.

Code

string

The response code.

200

Data

string

The operation result.

SUCCESS

ErrorMsg

string

The error message.

Gateway exception, please launch local dg first

RequestId

string

The request ID. You can use this ID to locate logs and troubleshoot issues.

B9FB545B-03E3-5AE3-9D9E-2FE26EE2C48F

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

AccessDeniedDetail

object

Details about the authorization failure.

AuthAction

string

The API name.

dms-dg:DeleteDatabase

AuthPrincipalDisplayName

string

The display name of the principal.

23894333884425****

AuthPrincipalOwnerId

string

The ID of the principal's owner.

1218522260143***

AuthPrincipalType

string

The type of the principal.

SubUser

EncodedDiagnosticMessage

string

The encoded complete diagnostic message.

AQFpaFA9aWhQPUVGNTY4MDU3LTE1OEQtMzYwMi05RkM5LUM0MEJGRjA4RkExOQ==

NoPermissionType

string

The reason for the authorization failure.

ExplicitDeny

PolicyType

string

The policy type that caused the authorization failure.

COST_OPTIMIZED

Examples

Success response

JSON format

{
  "Code": "200",
  "Data": "SUCCESS",
  "ErrorMsg": "Gateway exception, please launch local dg first",
  "RequestId": "B9FB545B-03E3-5AE3-9D9E-2FE26EE2C48F",
  "Success": true,
  "AccessDeniedDetail": {
    "AuthAction": "dms-dg:DeleteDatabase",
    "AuthPrincipalDisplayName": "23894333884425****",
    "AuthPrincipalOwnerId": "1218522260143***",
    "AuthPrincipalType": "SubUser",
    "EncodedDiagnosticMessage": "AQFpaFA9aWhQPUVGNTY4MDU3LTE1OEQtMzYwMi05RkM5LUM0MEJGRjA4RkExOQ==",
    "NoPermissionType": "ExplicitDeny",
    "PolicyType": "COST_OPTIMIZED"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.