Skip to main content

UpdateNetworkAclEntries

Description

call UpdateNetworkAclEntries interface to update network ACL rules.

Request Method

POST

Request Path

/apsara/route/Vpc/UpdateNetworkAclEntries

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
IngressAclEntries.N.SourceCidrIpBODYstringNo10.0.0.0/24source address network segment.
IngressAclEntries.N.EntryTypeBODYstringNocustomrule type, value: custom(default): custom. system: system.
UpdateEgressAclEntriesBODYbooleanNofalseWhether to update the direction rule, value: true: update. false(default): not updated.
NetworkAclIdBODYstringYesnacl-bp1lhl0taikrzxsc****ID of network ACL.
EgressAclEntries.N.ProtocolBODYstringNoalltransport 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.DescriptionBODYstringNoThis is IngressAclEntries.description information of the entry direction rule.
versionBODYstringNo2016-01-01version of api
IngressAclEntries.N.ProtocolBODYstringNoalltransport 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.EntryTypeBODYstringNocustomrule type, value: custom(default): custom. system: system.
EgressAclEntries.N.NetworkAclEntryIdBODYstringNonae-2zecs97e0brcge46****ID of the exit direction rule entry.
EgressAclEntries.N.DescriptionBODYstringNoThis is EgressAclEntries.description information of the exit direction rule.
regionIdBODYstringYesNo sample value for this parameter.region id
IngressAclEntries.N.NetworkAclEntryNameBODYstringNoacl-3The name of the entry direction rule.
IngressAclEntries.N.NetworkAclEntryIdBODYstringNonae-2zepn32de59j8m4****ID of the entry direction rule entry.
IngressAclEntries.N.PolicyBODYstringNoacceptauthorization policy, value: accept: allowed. drop: reject.
IngressAclEntries.N.PortBODYstringNo-1/-1source port range.
EgressAclEntries.N.PolicyBODYstringNoacceptauthorization policy, value: accept: allowed. drop: reject.
EgressAclEntries.N.NetworkAclEntryNameBODYstringNoacl-2The name of the exit direction rule entry.
EgressAclEntries.N.DestinationCidrIpBODYstringNo10.0.0.0/24the network of the destination address.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID where the network ACL is located. You can obtain the region ID by calling the DescribeRegions interface.
UpdateIngressAclEntriesBODYbooleanNofalseWhether to update the inbound rule, value: true: update. false(default): not updated.
EgressAclEntries.N.PortBODYstringNo-1/-1destination port range.
ClientTokenBODYstringNo0c593ea1-3bea-11e9-b96b-88e9fe637760Ensure 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

NameTypeSample valueDescription
RequestIdstring1170A5A0-E760-4331-9133-A7D38D973215request ID.

Example

Successful Response example

{
"RequestId":"1170A5A0-E760-4331-9133-A7D38D973215"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}