[Openstack] [openstack-dev] CLI command to figure out security-group's association to particular tenant/user

Rick Jones rick.jones2 at hp.com
Fri Jun 28 17:17:12 UTC 2013


On 06/28/2013 01:55 AM, Rahul Sharma wrote:
> Thanks Aaron for your kind help. It worked. Is there any doc which lists
> all the possible commands and their usage for quantum? because --help
> doesn't help in identifying all the parameters, is there any reference
> which one can use to get the complete command syntax?

If you use "quantum help <command>" rather than quantum --help, it will 
give you more detailed help about <command>.  For example:

$ quantum help security-group-rule-create
usage: quantum security-group-rule-create [-h]
                                           [-f {html,json,shell,table,yaml}]
                                           [-c COLUMN] [--variable VARIABLE]
                                           [--prefix PREFIX]
                                           [--request-format {json,xml}]
                                           [--tenant-id TENANT_ID]
                                           [--direction {ingress,egress}]
                                           [--ethertype ETHERTYPE]
                                           [--protocol PROTOCOL]
                                           [--port-range-min PORT_RANGE_MIN]
                                           [--port-range-max PORT_RANGE_MAX]
                                           [--remote-ip-prefix 
REMOTE_IP_PREFIX]
                                           [--remote-group-id SOURCE_GROUP]
                                           SECURITY_GROUP

Create a security group rule.

positional arguments:
   SECURITY_GROUP        Security group name or id to add rule.

optional arguments:
   -h, --help            show this help message and exit
   --request-format {json,xml}
                         the xml or json request format
   --tenant-id TENANT_ID
                         the owner tenant ID
   --direction {ingress,egress}
                         direction of traffic: ingress/egress
   --ethertype ETHERTYPE
                         IPv4/IPv6
   --protocol PROTOCOL   protocol of packet
   --port-range-min PORT_RANGE_MIN
                         starting port range
   --port-range-max PORT_RANGE_MAX
                         ending port range
   --remote-ip-prefix REMOTE_IP_PREFIX
                         cidr to match on
   --remote-group-id SOURCE_GROUP
                         remote security group name or id to apply rule

output formatters:
   output formatter options

   -f {html,json,shell,table,yaml}, --format {html,json,shell,table,yaml}
                         the output format, defaults to table
   -c COLUMN, --column COLUMN
                         specify the column(s) to include, can be repeated

shell formatter:
   a format a UNIX shell can parse (variable="value")

   --variable VARIABLE   specify the variable(s) to include, can be repeated
   --prefix PREFIX       add a prefix to all variable names

rick jones




More information about the Openstack mailing list