Update ACL Rules
Last Updated:2020-08-06
Description
Update the ACL rule information.
Request Structure
PUT /v{version}/acl/rule/{aclRuleId}?clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"description":"",
"protocol":"tcp",
"sourceIpAddress":"192.168.0.0",
"destinationIpAddress":"192.168.0.0/20",
"sourcePort":"1-65535",
"destinationPort":"443",
"position":2,
"action":"allow"
}
Request Header
There are no other special headers except the public headers.
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number |
clientToken | String | No | Query parameter | Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see ClientToken Idempotence |
aclRuleId | String | Yes | URL parameter | ACL rule ID |
description | String | No | RequestBody parameter | Comments |
protocol | String | No | RequestBody parameter | Protocol, including all tcp udp icmp |
sourceIpAddress | String | No | RequestBody parameter | Source IP |
destinationIpAddress | String | No | RequestBody parameter | Destination IP |
sourcePort | String | No | RequestBody parameter | Source port |
destinationPort | String | No | RequestBody parameter | Destination port |
position | Integer | No | RequestBody parameter | Priority 1-5000, no repetition with existing items The smaller the value is, the higher the priority is. The rule matching sequence is matched according to the priority from high to low. |
action | String | No | RequestBody parameter | Policy, including allow and deny |
Return Header
There are no other special headers except the public headers.
Return Parameter
There is no special return parameter.
Request Example
PUT /v1/acl/rule/ar-f6ze0s95drra HTTP/1.1
host: bcc.bj.baidubce.com
content-type: application/json
authorization: bce-auth-v1/c98fb9a1366011e8912505e5e0ae9978/2018-04-02T10:54:32Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce- request-id;x-bce-security-token/e66be5966b6d6728d8f0431b0cd10558e8a69989cbddfc5e9211371fe05fa7e9
{
"description" : "",
"protocol" : "tcp",
"sourceIpAddress" : "192.168.0.0",
"destinationIpAddress" : "192.168.0.0/20",
"sourcePort" : "1-65535",
"destinationPort" : "22",
"position" : 334,
"action" : "allow"
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 9d3e5721-d77f-4984-9fff-3092fa4e31a3
Date:Fri, 17 Mar 2017 13:22:21 GMT
Content Type: application/json;charset=UTF 8
Server: BWS