exo compute security-group rule add

Description

This command adds a rule to a Compute instance Security Group.

Supported network protocols: ah, esp, gre, icmp, icmpv6, ipip, tcp, udp

Supported output template annotations: .ID, .Name, .Description, .ExternalSources, .IngressRules, .EgressRules, .Instances

exo compute security-group rule add SECURITY-GROUP-ID|NAME [flags]

Options

OptionDescription
--descriptionrule description
--flowrule network flow direction (ingress|egress)
--help, -hhelp for add
--icmp-coderule ICMP code
--icmp-typerule ICMP type
--networkrule target network address (in CIDR format)
--portrule network port (format: PORT|START-END)
--protocolrule network protocol
--public-security-grouprule target Public Security Group NAME
--security-grouprule target Security Group NAME|ID

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • rule - Security Group rules management