Available in VPC
Get the list of ACG rules.
Syntax
The getAccessControlGroupRuleList syntax is as follows:
./ncloud vserver getAccessControlGroupRuleList \
--accessControlGroupNo <acg-no> \
[--accessControlGroupRuleTypeCode <INBND|OTBND>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getAccessControlGroupRuleList.
Required options
The following options are required for getAccessControlGroupRuleList.
| Options | Type | Required | Description |
|---|---|---|---|
--accessControlGroupNo |
String | Required | ACG number |
Optional options
These are the optional options for getAccessControlGroupRuleList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--accessControlGroupRuleTypeCode |
String | Optional | ACG rule type code
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to view the ACG rule list is successful, details about the inbound and outbound rules will be returned.
Command
The command example is as follows:
./ncloud vserver getAccessControlGroupRuleList \
--accessControlGroupNo 67890123 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getAccessControlGroupRuleListResponse": {
"totalRows": 2,
"accessControlGroupRuleList": [
{
"accessControlGroupNo": "67890123",
"protocolType": {
"code": "TCP",
"codeName": "tcp",
"number": 6
},
"ipBlock": "192.0.2.0/24",
"accessControlGroupSequence": "",
"portRange": "22",
"accessControlGroupRuleType": {
"code": "INBND",
"codeName": "Inbound"
},
"accessControlGroupRuleDescription": "SSH from office"
},
{
"accessControlGroupNo": "67890123",
"protocolType": {
"code": "TCP",
"codeName": "tcp",
"number": 6
},
"ipBlock": "0.0.0.0/0",
"accessControlGroupSequence": "",
"portRange": "443",
"accessControlGroupRuleType": {
"code": "OTBND",
"codeName": "Outbound"
},
"accessControlGroupRuleDescription": "HTTPS egress"
}
],
"requestId": "e5f67890-1234-5678-ef01-567890123456",
"returnCode": "0",
"returnMessage": "success"
}
}