addAccessControlGroupOutboundRule
- Print
- PDF
addAccessControlGroupOutboundRule
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Available in VPC
Overview
Adds rules to the outbound rule list of ACG.
Request
Request parameter
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
regionCode | No | String | - Region code Able to determine the region to which an outbound 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 outbound 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 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 addAccessControlGroupOutboundRule --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
Outbound rule list of the ACG after the request is performed
<addAccessControlGroupOutboundRuleResponse>
<requestId>2dc83aed-e495-4cc2-a695-e6e253200f42</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>OTBND</code>
<codeName>Outbound</codeName>
</accessControlGroupRuleType>
<accessControlGroupDescription></accessControlGroupDescription>
</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>OTBND</code>
<codeName>Outbound</codeName>
</accessControlGroupRuleType>
<accessControlGroupDescription></accessControlGroupDescription>
</accessControlGroupRule>
</accessControlGroupRuleList>
</addAccessControlGroupOutboundRuleResponse>
Was this article helpful?