addNetworkAclInboundRule
- Print
- PDF
addNetworkAclInboundRule
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Can be used in a VPC environment.
Overview
Add the inbound rule list of the network ACL.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code You can decide the region of the network ACL where the inbound rules will be added. You can obtain regionCode through the getRegionList action. Default: Selects the first region of the getRegionList search results. | |
networkAclNo | Yes | String | - Network ACL number You can obtain networkAclNo through the getNetworkAclList action. | |
networkAclRuleList.N.priority | Yes | Integer | Min: 0, Max: 199 | - Priority of network ACL rules It can't overlap with the priority of other inbound rules. |
networkAclRuleList.N.protocolTypeCode | Yes | String | - The protocol type code of network ACL rule Options: TCP | UDP | ICMP | |
networkAclRuleList.N.ipBlock | Conditional | String | - The access source IP address block of network ACL rules E.g., 0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32 | |
networkAclRuleList.N.denyAllowGroupNo | Conditional | String | - The Deny-Allow group number of network ACL rules' access sources You can designate Deny-Allow groups instead of IP address blocks as access sources. You can obtain denyAllowGroupNo through the getNetworkAclDenyAllowGroupList action. | |
networkAclRuleList.N.portRange | Conditional | String | - The port range of network ACL rules Example 1. Single port: 22 Example 2. Specifying range: 1-65535 Not entered when protocolTypeCode is ICMP. | |
networkAclRuleList.N.ruleActionCode | Yes | String | - The rule action code of network ACL rules Options: ALLOW | DROP | |
networkAclRuleList.N.networkAclRuleDescription | No | String | Min: 0, Max: 1000 Bytes | Network ACL rule description |
responseFormatType | No | String | - Format type of the response result Options: xml | json Default: xml |
Response
Response body
Examples
Request examples
GET {API_URL}/vpc/v2/addNetworkAclInboundRule
?regionCode=KR
&networkAclNo=***31
&networkAclRuleList.1.priority=0
&networkAclRuleList.1.protocolTypeCode=TCP
&networkAclRuleList.1.ipBlock=***.***.0.0/0
&networkAclRuleList.1.portRange=22-23
&networkAclRuleList.1.ruleActionCode=ALLOW
Response examples
The inbound rule list of the network ACL after completing the request
<addNetworkAclInboundRuleResponse>
<requestId>189b16ac-26a0-472e-b3a9-47b80cdf7dfe</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<networkAclRuleList>
<networkAclRule>
<networkAclNo>***31</networkAclNo>
<priority>0</priority>
<protocolType>
<code>TCP</code>
<codeName>tcp</codeName>
</protocolType>
<portRange>22-23</portRange>
<ruleAction>
<code>ALLOW</code>
<codeName>Allow</codeName>
</ruleAction>
<createDate>2020-08-05T19:56:35+0900</createDate>
<ipBlock>***.***.0.0/0</ipBlock>
<denyAllowGroupNo/>
<networkAclRuleType>
<code>INBND</code>
<codeName>Inbound</codeName>
</networkAclRuleType>
<networkAclRuleDescription></networkAclRuleDescription>
</networkAclRule>
</networkAclRuleList>
</addNetworkAclInboundRuleResponse>
Was this article helpful?