Domain name for API request: tdmysql.intl.tencentcloudapi.com.
This API is used to modify the network to which the instance belongs.
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: ModifyInstanceNetwork. |
| Version | Yes | String | Common Params. The value used for this API: 2021-11-22. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Instance ID. |
| VpcId | Yes | String | VpcId of the target VPC network |
| SubnetId | Yes | String | Subnet ID of the target VPC network |
| VipReleaseDelay | No | Integer | VIP retention duration, in hours, value ranges from 0 to 168. 0 means immediate release with a one-minute delay. Not specified, default is 24 hr for VIP release. |
| Vip | No | String | Assign vip modification. Leave blank for a random vip. |
| 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. |
Instance Network Modification
https://tdmysql.intl.tencentcloudapi.com/?Action=ModifyInstanceNetwork
&InstanceId=tdsql-jv8z8fhl
&VpcId=vpc-xxxxxx
&SubnetId=subnet-xxxxx
&VipReleaseDelay=24
&<Common request parameters>
{
"Response": {
"RequestId": "14f6980a-7fe1-11ea-b896-525400542aa6"
}
}
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.ApplyVipFailed | FailedOperation.ApplyVipFailed |
| FailedOperation.LockInstanceError | Failed to lock the instance. |
| FailedOperation.WanStatusAbnormal | FailedOperation.WanStatusAbnormal |
| InternalError.CheckVipStatusFailed | InternalError.CheckVipStatusFailed |
| InternalError.DbOperationFailed | InternalError.DbOperationFailed |
| InternalError.GetSubnetFailed | InternalError.GetSubnetFailed |
| InternalError.GetVpcFailed | InternalError.GetVpcFailed |
| InternalError.VpcOperationFailed | InternalError.VpcOperationFailed |
| InvalidParameter.InstanceNotFound | InvalidParameter.InstanceNotFound |
| InvalidParameter.SubnetUnavailable | InvalidParameter.SubnetUnavailable |
| InvalidParameter.VipNotInSubnet | InvalidParameter.VipNotInSubnet |
| InvalidParameter.VipUsed | InvalidParameter.VipUsed |
| OperationDenied.InstanceStatusError | Incorrect instance status |
| ResourceUnavailable.InstanceStatusAbnormal | ResourceUnavailable.InstanceStatusAbnormal |
| UnauthorizedOperation.PermissionDenied | UnauthorizedOperation.PermissionDenied |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários