Domain name for API request: ga2.intl.tencentcloudapi.com.
Modify ACL 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: ModifyGlobalAcceleratorAclRule. |
| Version | Yes | String | Common Params. The value used for this API: 2025-01-15. |
| Region | No | String | Common Params. This parameter is not required. |
| GlobalAcceleratorId | Yes | String | Global acceleration instance ID. |
| GlobalAcceleratorAclPolicyId | Yes | String | Security policy ID |
| GlobalAcceleratorAclRuleId | Yes | String | Acl rule ID. |
| Protocol | No | String | Protocol. Input parameter limit: support selecting 'TCP', 'UDP'. |
| Port | No | String | Port. |
| SourceCidrBlock | No | String | IP range. |
| Policy | No | String | Action. Input parameter limit: support selecting 'ACCEPT', 'DROP'. Enumeration values:
|
| Description | No | String | Description. Maximum length cannot exceed 100 bytes. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Asynchronous task ID. |
| 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: ga2.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyGlobalAcceleratorAclRule
<Common request parameters>
{
"GlobalAcceleratorId": "ga-80bzejka",
"GlobalAcceleratorAclPolicyId": "sp-dz058gbb",
"GlobalAcceleratorAclRuleId": "sr-00000msx",
"Protocol": "UDP"
}
{
"Response": {
"RequestId": "870fbbc5-5820-4bff-a5b5-ae0885e284b0",
"TaskId": "261f2719-20a4-45e4-84e2-d394018fd672"
}
}
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.InputDuplicateWithExistingData | The input parameter %(key)s in the request duplicates existing data. |
| InvalidParameter.InputMustExistOne | The in-progress request must have one of the %(value)s input parameters. |
| InvalidParameter.InputOutOfRange | The in-progress request input parameter %(key)s is required and within the %(value)s range. |
| InvalidParameterValue.InstanceMismatch | The instance object %(value)s has a mismatched relationship. |
| InvalidParameterValue.Malformed | Parameter value %(value)s of %(parameter)s is invalid. A correct and complete value is in the form of %(template)s. |
| InvalidParameterValue.TooLong | Parameter value %(value)s length cannot be greater than %(max_size)s. |
| UnsupportedOperation.InstanceStateNotAllowedOperate | Current instance status does not allow this operation. |
文档反馈