Domain name for API request: sqlserver.tencentcloudapi.com.
This API is used to upgrade an instance.
A maximum of 20 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: sqlserver.ap-shanghai-fsi.tencentcloudapi.com
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: UpgradeDBInstance. |
Version | Yes | String | Common parameter. The value used for this API: 2018-03-28. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
InstanceId | Yes | String | Instance ID in the format of mssql-j8kv137v |
Memory | Yes | Integer | Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size |
Storage | Yes | Integer | Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity |
AutoVoucher | No | Integer | Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0 |
VoucherIds.N | No | Array of String | Voucher ID (currently, only one voucher can be used per order) |
Cpu | No | Integer | The number of CUP cores after the instance is upgraded. |
Parameter Name | Type | Description |
---|---|---|
DealName | String | Order name |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://sqlserver.tencentcloudapi.com/?Action=UpgradeDBInstance
&InstanceId=mssql-j8kv137v
&Memory=4
&Storage=400
&<Common request parameters>
{
"Response": {
"RequestId": "4be5990d-a4b5-49dc-b2b4-e713b6aa7ba3",
"DealName": "201806261980"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.CreateOrderFailed | Failed to create order. |
InternalError.DBError | Database error |
InternalError.SystemError | System error. |
InvalidParameter.InputIllegal | Input error. |
InvalidParameter.ParamsAssertFailed | An error occurred while converting parameter assertion. |
InvalidParameterValue.IllegalSpec | Incorrect instance specification information. |
ResourceNotFound.InstanceNotFound | The instance does not exist. |
UnauthorizedOperation.PermissionDenied | CAM authentication error. |
Was this page helpful?