Domain name for API request: teo.intl.tencentcloudapi.com.
This API is on an earlier version. If you want to call it, switch to the latest version. For details, refer to [Modify Layer 4 Proxy Instance].
](https://www.tencentcloud.com/document/product/1552/103411?from_cn_redirect=1) .
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: ModifyApplicationProxy. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Zone ID. |
| ProxyId | Yes | String | Proxy ID. |
| ProxyName | Yes | String | When ProxyType=hostname, it indicates a domain name or subdomain. Proxy name when ProxyType=instance. |
| SessionPersistTime | No | Integer | Session persistence duration. Value range: 30-3600. Unit: second. Maintain the original configuration if not specified. |
| ProxyType | No | String | L4 proxy mode. Valid values:instance: Create by instance.instance if not specified. |
| Ipv6 | No | Ipv6 | Ipv6 access configuration. Maintain the original configuration if not specified. |
| AccelerateMainland | No | AccelerateMainland | Chinese mainland acceleration optimization configuration. Leave blank to indicate retaining the original configuration. |
| 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. |
Modify an application proxy.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyApplicationProxy
<Common request parameters>
{
"ZoneId": "zone-21xfqlh4qjee",
"ProxyId": "proxy-537f5b41-162a-11ed-abaa-525400c5da15",
"ProxyName": "ssss",
"ProxyType": "instance",
"SessionPersistTime": 3600,
"Ipv6": {
"Switch": "on"
}
}
{
"Response": {
"RequestId": "b03fe5dd-be04-444c-a2e1-49f1bf2f399a"
}
}
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 |
|---|---|
| InvalidParameter.InvalidOriginIp | Private IP addresses or loopback addresses are not supported as the origin server address. |
| OperationDenied | Operation denied. |
| OperationDenied.ErrZoneIsAlreadyPaused | Site disabled. Turn it on and try again. |
| OperationDenied.L4LackOfResources | Layer 4 instance resources are selling out quickly and are currently out of stock. We are urgently restocking. It is not possible to add new Layer 4 proxies right now. Please wait patiently. |
| OperationDenied.L4ProxyInBannedStatus | The Layer 4 proxy resource is blocked, so operations are not allowed. |
| ResourceNotFound | The resource does not exist. |
フィードバック