vinfra service compute security-group rule list

List security group rules:

usage: vinfra service compute security-group rule list [--long] [--limit <num>]
                                                       [--marker <marker>]
                                                       [--id <id>] [<group>]
--long
Enable access and listing of all fields of objects.
--limit <num>
The maximum number of security group rules to list. To list all security group rules, set the option to -1.
--marker <router>
List security group rules after the marker.
--id <id>
Show a security group rule with the specified ID or list security group rules using a filter. Supported filter operator: in. The filter format is <operator>:<value1>[,<value2>,…].
<group>
List security group rules in a particular security group specified by name or ID.

Example:

# vinfra service compute security-group rule list mygroup \
-c id -c direction -c protocol
+--------------------------------------+-----------+----------+
| id                                   | direction | protocol |
+--------------------------------------+-----------+----------+
| 0f395e2f-a8ab-47f4-b670-64399461393c | ingress   | tcp      |
| a7c65861-df3d-47f2-bec3-089747141936 | egress    |          |
| ce854e2b-537f-4618-bea9-e9ec3d8616ac | egress    |          |
+--------------------------------------+-----------+----------+

This command lists rules in the security group mygroup.