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, see Modifying Layer 4 Proxy Forwarding Rules.
](https://www.tencentcloud.com/document/product/1552/103410?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: ModifyApplicationProxyRule. |
| 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 | Site ID. |
| ProxyId | Yes | String | Proxy ID. |
| RuleId | Yes | String | Rule ID. |
| OriginType | Yes | String | Origin server type. Valid values:custom: Manually added; |
| Port.N | Yes | Array of String | Port. Supported formats: |
| Proto | No | String | Protocol. Valid values: |
| OriginValue.N | No | Array of String | Details of the origin server:["8.8.8.8","9.9.9.9"] or OriginValue=["test.com"];If not specified, the original value is retained. |
| ForwardClientIp | No | String | Pass the client IP address. Valid values: |
| SessionPersist | No | Boolean | Whether to enable session persistence. Valid values: |
| SessionPersistTime | No | Integer | Duration for session persistence, in seconds. The value takes effect only when SessionPersist is true. |
| OriginPort | No | String | Origin server port. Supported formats: |
| RuleTag | No | String | Rule tag. If not specified, the original value is retained. |
| 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 rule
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyApplicationProxyRule
<Common request parameters>
{
"ZoneId": "zone-276zs184g93m",
"ProxyId": "proxy-19389e5dwwxfs",
"RuleId": "rule-5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707",
"Proto": "TCP",
"Port": [
"99-110"
],
"OriginType": "custom",
"OriginValue": [
"1.1.1.1"
],
"OriginPort": "99-110",
"ForwardClientIp": "TOA",
"SessionPersist": false,
"RuleTag": "rule-service-1"
}
{
"Response": {
"RequestId": "5e0a2b4e-df6d-4d2a-ac39-1706cbf8a707"
}
}
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. |
| InvalidParameter.InvalidOriginIp | Private IP addresses or loopback addresses are not supported as the origin server address. |
| InvalidParameter.ParameterError | Parameter error: invalid "end time", not in the allowed query range: [start time, start + 7 days] |
| OperationDenied | Operation denied. |
| OperationDenied.L4ProxyInBannedStatus | The Layer 4 proxy resource is blocked, so operations are not allowed. |
| ResourceNotFound | The resource does not exist. |
피드백