Domain name for API request: cfw.tencentcloudapi.com.
This API is used to modify NAT access control rules.
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: ModifyNatAcRule. |
Version | Yes | String | Common Params. The value used for this API: 2019-09-04. |
Region | No | String | Common Params. This parameter is not required for this API. |
Rules.N | Yes | Array of CreateNatRuleItem | Array of rules to be modified. |
Parameter Name | Type | Description |
---|---|---|
RuleUuid | Array of Integer | ID list of new rules that have been successfully modified. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to modify NAT access control rules.
POST / HTTP/1.1
Host: cfw.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyNatAcRule
<Common Request Parameters>
{
"Rules": [
{
"SourceContent": "xx",
"SourceType": "xx",
"TargetContent": "xx",
"TargetType": "xx",
"Protocol": "xx",
"RuleAction": "xx",
"Port": "xx",
"Direction": 1,
"OrderIndex": 0,
"Uuid": 0,
"Enable": "xx",
"Description": "xx"
}
]
}
{
"Response": {
"RuleUuid": [
0
],
"RequestId": "xx"
}
}
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 | Invalid parameter. |
LimitExceeded | The quota limit has been reached. |
UnauthorizedOperation | Unauthorized operation. |
UnsupportedOperation | Unsupported operation. |
Was this page helpful?