dcloud ec2 security-groups createCreate a security group with optional initial rules
IAM ec2:CreateSecurityGroupChanges state
Synopsis
dcloud ec2 security-groups create --name name [flags]Flags
--nameRequiredstring
A display name
Constraints: 1-64 chars
--descriptionOptionalstring
Free text; omitted: none
Constraints: max 255 chars
--rulesOptionalarray of json
Initial rules, each { direction, protocol, fromPort, toPort, cidrIpv4, description } as for adding a rule; omitted: none
--tagsOptionalmap of string
Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).
Constraints: key=value
Example
dcloud ec2 security-groups create --name exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.