Domain name for API request: cdb.intl.tencentcloudapi.com.
This API is used to modify the database proxy address VPC information.
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: ModifyCdbProxyAddressVipAndVPort. |
| Version | Yes | String | Common Params. The value used for this API: 2017-03-20. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| ProxyGroupId | Yes | String | Proxy group ID. Obtain through the DescribeCdbProxyInfo API. |
| ProxyAddressId | Yes | String | Proxy group address ID. Obtain through the DescribeCdbProxyInfo API. |
| UniqVpcId | Yes | String | VPC ID, which can be obtained through the DescribeDBInstances API. |
| UniqSubnetId | Yes | String | Private subnet ID, which can be obtained through the DescribeDBInstances API. |
| Vip | No | String | IP. If not specified, the system will assign an available IP under subnet. |
| VPort | No | Integer | Port. Default value 3306, value ranges from 1024 to 65535. |
| ReleaseDuration | No | Integer | Old IP valid hours. Measurement unit: hr, default value: 24, value ranges from 0 to 168. |
| Parameter Name | Type | Description |
|---|---|---|
| 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. |
POST / HTTP/1.1
Host: cdb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyCdbProxyAddressVipAndVPort
<Common request parameters>
{
"ProxyGroupId": "proxy-il2nlsdn",
"ProxyAddressId": "proxyaddr-mc0efsw0",
"UniqVpcId": "vpc-ixw3ll2d",
"UniqSubnetId": "subnet-0z3r56vq"
}
{
"Response": {
"RequestId": "6EF60BEC-0242-43AF-BB20-270359FB54A7"
}
}
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.DescribeProxyGroupError | Failed to query database proxy. |
| FailedOperation.VpcIpInUseError | The IP has been occupied. |
| FailedOperation.VpcIpNotInSubnetError | The IP doesn’t exist in the subnet. |
| InternalError.UnknownError | Unknown error |
| InvalidParameter.ExceptionParam | Parameter exception. |
| InvalidParameterValue.InvalidParameterValueError | Invalid parameter value |
フィードバック