addAccessControlGroupInboundRule
- Print
- PDF
addAccessControlGroupInboundRule
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Overview
Adds the inbound rule list of the ACG.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code Able to determine the region to which an inbound rule is to be added. regionCode is obtained via getRegionList Default: the first region from the getRegionList search results is selected. | |
vpcNo | Yes | String | - VPC number Determines the VPC of the ACG to which an inbound rule is to be added. vpcNo is obtained via getVpcList | |
accessControlGroupNo | Yes | String | - ACG number accessControlGroupNo is obtained via getAccessControlGroupList | |
accessControlGroupRuleList.N.protocolTypeCode | Yes | String | - Protocol type code of the ACG rule Protocol number is valid within 1-254. Options: TCP | UDP | ICMP | 1-254 | |
accessControlGroupRuleList.N.ipBlock | Conditional | String | - Access the source IP address block of the ACG rule You can register either an IP address block or an ACG number as an access source. E.g., 0.0.0.0/0, 100.10.20.0/24, 192.168.0.10/32 | |
accessControlGroupRuleList.N.accessControlGroupSequence | Conditional | String | - Access the source ACG number of the ACG rule You can register either an IP address block or an ACG number as an access source. accessControlGroupNo is obtained via getAccessControlGroupList | |
accessControlGroupRuleList.N.portRange | Conditional | String | - Port range of ACG rule E.g., 1. Single port: 22 E.g., 2. Custom range: 1-65535 No port range is required except for protocolTypeCode TCP(6), UDP(17) | |
accessControlGroupRuleList.N.accessControlGroupRuleDescription | No | String | Min: 0, Max: 1000 Bytes | ACG rule description |
responseFormatType | No | String | - Format type of response Options: xml | json Default: xml |
Response
Response data type
- AccessControlGroupRuleList type
AccessControlGroupRuleList extends CommonResponse |
---|
private Integer totalRows; |
private List |
AccessControlGroupRule |
---|
private String accessControlGroupNo; |
private ProtocolType protocolType; |
private String ipBlock; |
private String accessControlGroupSequence; |
private String portRange; |
private CommonCode accessControlGroupRuleType; |
private String accessControlGroupRuleDescription; |
Examples
Request examples
ncloud vserver addAccessControlGroupInboundRule --regionCode KR --vpcNo ***04 --accessControlGroupNo ***63 --accessControlGroupRuleList "protocolTypeCode='TCP', ipBlock='***.***.0.0/0', portRange='81'" "protocolTypeCode='TCP', ipBlock='***.***.0.0/0', portRange='82'"
Response examples
Inbound rule list of the ACG after the request is performed
<addAccessControlGroupInboundRuleResponse>
<requestId>eb6a1733-f4a1-4e04-8c99-cf2d8081a9fb</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>2</totalRows>
<accessControlGroupRuleList>
<accessControlGroupRule>
<accessControlGroupNo>***63</accessControlGroupNo>
<protocolType>
<code>TCP</code>
<codeName>tcp</codeName>
<number>6</number>
</protocolType>
<ipBlock>***.***.0.0/0</ipBlock>
<accessControlGroupSequence></accessControlGroupSequence>
<portRange>80</portRange>
<accessControlGroupRuleType>
<code>INBND</code>
<codeName>Inbound</codeName>
</accessControlGroupRuleType>
<accessControlGroupRuleDescription></accessControlGroupRuleDescription>
</accessControlGroupRule>
<accessControlGroupRule>
<accessControlGroupNo>***63</accessControlGroupNo>
<protocolType>
<code>TCP</code>
<codeName>tcp</codeName>
<number>6</number>
</protocolType>
<ipBlock>***.***.0.0/0</ipBlock>
<accessControlGroupSequence></accessControlGroupSequence>
<portRange>22</portRange>
<accessControlGroupRuleType>
<code>INBND</code>
<codeName>Inbound</codeName>
</accessControlGroupRuleType>
<accessControlGroupRuleDescription></accessControlGroupRuleDescription>
</accessControlGroupRule>
</accessControlGroupRuleList>
</addAccessControlGroupInboundRuleResponse>
Was this article helpful?