dcloud ec2 security-groups authorize-ingressAdd an inbound rule
IAM ec2:AuthorizeSecurityGroupIngressChanges state
Synopsis
dcloud ec2 security-groups authorize-ingress id --protocol protocol [flags]Arguments
<id>Requiredstring
Also accepted as
--id. Constraints: uuid
Flags
--protocolRequiredenum
The IP protocol the rule matches
One of:
tcp,udp,icmp--from-portOptionalnumber
First port of the range; omitted: every port. Ignored for ICMP
Constraints: integer, 0-65535
--to-portOptionalnumber
Last port of the range; omitted: fromPort alone
Constraints: integer, 0-65535
--cidr-ipv4Optionalstring
Where traffic may come from: a CIDR block or a single address (IPv4 or IPv6); default 0.0.0.0/0
Default:
"0.0.0.0/0"--descriptionOptionalstring
Free text; omitted: none
Constraints: max 255 chars
Example
dcloud ec2 security-groups authorize-ingress id --protocol tcpGenerated from the API description, the same one the API checks requests against and the CLI is built from.