From aaed4b315fa1e86b1ddf73201b5350dbdb4a660e Mon Sep 17 00:00:00 2001 From: Dongcan Ye Date: Sat, 24 Feb 2018 09:13:48 +0000 Subject: Network: Add tag support for security group Change-Id: Icccb23429913724c6a8bd15d4737672b47a5f13a Closes-Bug: #1750983 --- doc/source/cli/command-objects/security-group.rst | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'doc/source/cli') diff --git a/doc/source/cli/command-objects/security-group.rst b/doc/source/cli/command-objects/security-group.rst index a95a96f4..403e5fc0 100644 --- a/doc/source/cli/command-objects/security-group.rst +++ b/doc/source/cli/command-objects/security-group.rst @@ -19,6 +19,7 @@ Create a new security group openstack security group create [--description ] [--project [--project-domain ]] + [--tag | --no-tag] .. option:: --description @@ -38,6 +39,18 @@ Create a new security group *Network version 2 only* +.. option:: --tag + + Tag to be added to the security group (repeat option to set multiple tags) + + *Network version 2 only* + +.. option:: --no-tag + + No tags associated with the security group + + *Network version 2 only* + .. describe:: New security group name @@ -68,6 +81,8 @@ List security groups openstack security group list [--all-projects] [--project [--project-domain ]] + [--tags [,,...]] [--any-tags [,,...]] + [--not-tags [,,...]] [--not-any-tags [,,...]] .. option:: --all-projects @@ -89,6 +104,30 @@ List security groups *Network version 2 only* +.. option:: --tags [,,...] + + List security groups which have all given tag(s) + + *Network version 2 only* + +.. option:: --any-tags [,,...] + + List security groups which have any given tag(s) + + *Network version 2 only* + +.. option:: --not-tags [,,...] + + Exclude security groups which have all given tag(s) + + *Network version 2 only* + +.. option:: --not-any-tags [,,...] + + Exclude security groups which have any given tag(s) + + *Network version 2 only* + security group set ------------------ @@ -100,6 +139,7 @@ Set security group properties openstack security group set [--name ] [--description ] + [--tag ] [--no-tag] .. option:: --name @@ -110,6 +150,15 @@ Set security group properties New security group description +.. option:: --tag + + Tag to be added to the security group (repeat option to set multiple tags) + +.. option:: --no-tag + + Clear tags associated with the security group. Specify both --tag + and --no-tag to overwrite current tags + .. describe:: Security group to modify (name or ID) @@ -128,3 +177,28 @@ Display security group details .. describe:: Security group to display (name or ID) + +security group unset +-------------------- + +Unset security group properties + +.. program:: security group unset +.. code:: bash + + openstack security group unset + [--tag | --all-tag] + + +.. option:: --tag + + Tag to be removed from the security group + (repeat option to remove multiple tags) + +.. option:: --all-tag + + Clear all tags associated with the security group + +.. describe:: + + Security group to modify (name or ID) -- cgit v1.2.1