Domain name for API request: cynosdb.intl.tencentcloudapi.com.
This API is used to upgrade the database proxy configuration.
A maximum of 20 requests can be initiated per second for this API.
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 Params. The value used for this API: UpgradeProxy. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-07. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| ClusterId | Yes | String | Cluster ID |
| Cpu | Yes | Integer | Number of CPU cores |
| Mem | Yes | Integer | memory |
| ProxyCount | No | Integer | Number of database proxy group nodes |
| ProxyGroupId | No | String | Database Proxy Group ID (abandoned) |
| ReloadBalance | No | String | Load rebalance: auto (automatic), manual |
| IsInMaintainPeriod | No | String | Upgrade time: no (upon upgrade completion); yes (instance maintenance time) |
| ProxyZones.N | No | Array of ProxyZone | Database proxy node information |
| IsRollUpgrade | No | String | Whether to perform a rolling upgrade |
| RollUpgradeWaitingTime | No | Integer | In-place rolling upgrade waiting time. Unit: seconds |
| Parameter Name | Type | Description |
|---|---|---|
| FlowId | Integer | Async process ID |
| TaskId | Integer | Asynchronous Task ID |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Upgrade the database proxy configuration
POST / HTTP/1.1
Host: cynosdb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UpgradeProxy
<Common request parameters>
{
"ClusterId": "cynosdbmysql-dnofdr2d",
"ProxyCount": 2,
"Cpu": 2,
"Mem": 4,
"ProxyGroupId": "cynosdbmysql-proxy-4378e0kb",
"ReloadBalance": "auto",
"IsInMaintainPeriod": "no",
"ProxyZones": [
{
"ProxyNodeZone": "ap-guangzhou-3",
"ProxyNodeCount": 2
}
],
"IsRollUpgrade": "yes",
"RollUpgradeWaitingTime": 10
}
{
"Response": {
"FlowId": 127635,
"TaskId": 174673,
"RequestId": "a5706353-296a-4992-ad07-ac4a48eeba43"
}
}
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 | Operation failed. |
| FailedOperation.DatabaseAccessError | Database access failed. Try again later. If the issue persists, contact customer service. |
| FailedOperation.FlowCreateError | Failed to create the process. Please retry later. If the issue continues, contact customer service. |
| FailedOperation.OperationFailedError | Operation failed. Try again later. If the issue persists, contact customer service. |
| FailedOperation.SpecNotFoundError | Specification information {{1}} search failure |
| OperationDenied.GetProxyGroupFailedError | Failed to get proxy |
| OperationDenied.ProxyConnectCountCheckError | The number of creatable connections supported by the proxy node does not match. Supported connections: {{1}}. Current connections: {{2}}. |
| OperationDenied.ProxyNodeCountCheckError | Proxy node quantity check failed |
| OperationDenied.ProxyNotRunningError | Non-running proxy |
| OperationDenied.ProxySaleZoneCheckError | The availability zone does not exist. |
| OperationDenied.ProxyVersionCheckError | Proxy version check failed |
| OperationDenied.ProxyZoneCheckError | proxy AZ verification failure |
| UnauthorizedOperation.PermissionDenied | CAM authentication failed. |
피드백