TerminateDBInstance

Last updated: 2019-09-09 15:18:01

PDF

1. API Description

Domain name for API request: mongodb.tencentcloudapi.com.

This API (TerminateDBInstance) is used to terminate a pay-as-you-go MongoDB database instance.

Default request rate limit: 20/sec.

Note: This API supports Finance regions. Finance and non-Finance regions are isolated from each other. Therefore, if the common parameter Region is a Finance region (such as ap-shanghai-fsi), you need to specify a domain name containing the Finance region specified in the Region field, for example: mongodb.ap-shanghai-fsi.tencentcloudapi.com.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common parameter. The value​used for this API: TerminateDBInstance.
Version Yes String Common parameter. The value used for this API: 2018-04-08
Region Yes String Common parameter. For more information, see the list of regions supported by the product.
InstanceId Yes String Instance ID, such as: cmgo-p8vnipr5.

3. Output Parameters

Parameter Name Type Description
AsyncRequestId String Order ID, indicating instance termination is successful
RequestId String The unique ID of a request, which is required for each troubleshooting case.

4. Example

Example 1 Terminate a pay-as-you-go database instance

Input example

https://mongodb.tencentcloudapi.com/?Action=TerminateDBInstance
&InstanceId=cmgo-f555zzzz
&<Common request parameters>

Output example

{
    "Response":{
        "RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7",
        "AsyncRequestId":"28920"
    }
}

5. Resources for Developers

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using cloud APIs.

SDK

Cloud API 3.0 comes with the software development kit (SDK) that supports multiple programming languages and makes it easier to call the APIs.

Command line tools

6. Error Codes

The following only lists the error codes related to this API. For other error codes, see Common Error Codes.

Error Code Description
InternalError.AsyncRequestError An error occurred while querying an async task.
InvalidParameter Invalid parameter