ByCloud Docs
GuidesCLIAPISDK

List security group rules

bycloud networking security-group-rules list [flags]

List all security group rules in the current project

Options

--direction

stringoptional

Filter by direction

Values: "ingress", "egress"

--ethertype

stringoptional

Filter by ethertype

Values: "IPv4", "IPv6"

--limit

integeroptional

Maximum number of items to return

Default: 20

--marker

stringoptional

ID of the last item from the previous page (for pagination)

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

--protocol

stringoptional

Filter by protocol

--security_group_id

stringoptional

Filter by security group ID

Command

bycloud networking security-group-rules list

Output

ID CRN SECURITY_GROUP_ID DIRECTION ETHERTYPE
550e8400-e29b-41d4-a716-446655 crn:spo1:network:security-grou 550e8400-e29b-41d4-a716-446655 ingress IPv4
550e8400-e29b-41d4-a716-446655 crn:spo1:network:security-grou 550e8400-e29b-41d4-a716-446655 ingress IPv4