UpdateNetworkAclEntries
Description
call UpdateNetworkAclEntries interface to update network ACL rules.
Request Method
POST
Request Path
/apsara/route/Vpc/UpdateNetworkAclEntries
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
IngressAclEntries.N.SourceCidrIp | BODY | string | No | 10.0.0.0/24 | source address network segment. |
IngressAclEntries.N.EntryType | BODY | string | No | custom | rule type, value: custom(default): custom. system: system. |
UpdateEgressAclEntries | BODY | boolean | No | false | Whether to update the direction rule, value: true: update. false(default): not updated. |
NetworkAclId | BODY | string | Yes | nacl-bp1lhl0taikrzxsc**** | ID of network ACL. |
EgressAclEntries.N.Protocol | BODY | string | No | all | transport layer protocol, value: icmp: network control message protocol. gre: universal routing encapsulation protocol. tcp: transmission control protocol. udp: user datagram protocol. all: All protocols are supported. |
IngressAclEntries.N.Description | BODY | string | No | This is IngressAclEntries. | description information of the entry direction rule. |
version | BODY | string | No | 2016-01-01 | version of api |
IngressAclEntries.N.Protocol | BODY | string | No | all | transport layer protocol, value: icmp: network control message protocol. gre: universal routing encapsulation protocol. tcp: transmission control protocol. udp: user datagram protocol. all: All protocols are supported. |
EgressAclEntries.N.EntryType | BODY | string | No | custom | rule type, value: custom(default): custom. system: system. |
EgressAclEntries.N.NetworkAclEntryId | BODY | string | No | nae-2zecs97e0brcge46**** | ID of the exit direction rule entry. |
EgressAclEntries.N.Description | BODY | string | No | This is EgressAclEntries. | description information of the exit direction rule. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
IngressAclEntries.N.NetworkAclEntryName | BODY | string | No | acl-3 | The name of the entry direction rule. |
IngressAclEntries.N.NetworkAclEntryId | BODY | string | No | nae-2zepn32de59j8m4**** | ID of the entry direction rule entry. |
IngressAclEntries.N.Policy | BODY | string | No | accept | authorization policy, value: accept: allowed. drop: reject. |
IngressAclEntries.N.Port | BODY | string | No | -1/-1 | source port range. |
EgressAclEntries.N.Policy | BODY | string | No | accept | authorization policy, value: accept: allowed. drop: reject. |
EgressAclEntries.N.NetworkAclEntryName | BODY | string | No | acl-2 | The name of the exit direction rule entry. |
EgressAclEntries.N.DestinationCidrIp | BODY | string | No | 10.0.0.0/24 | the network of the destination address. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface. |
UpdateIngressAclEntries | BODY | boolean | No | false | Whether to update the inbound rule, value: true: update. false(default): not updated. |
EgressAclEntries.N.Port | BODY | string | No | -1/-1 | destination port range. |
ClientToken | BODY | string | No | 0c593ea1-3bea-11e9-b96b-88e9fe637760 | Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 1170A5A0-E760-4331-9133-A7D38D973215 | request ID. |
Example
Successful Response example
{
"RequestId":"1170A5A0-E760-4331-9133-A7D38D973215"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}