2015-11-24 07:52:43 -06:00
|
|
|
==============
|
|
|
|
security group
|
|
|
|
==============
|
|
|
|
|
2016-04-24 19:17:36 -05:00
|
|
|
A **security group** acts as a virtual firewall for servers and other
|
|
|
|
resources on a network. It is a container for security group rules
|
|
|
|
which specify the network access rules.
|
|
|
|
|
2015-12-14 13:29:43 -06:00
|
|
|
Compute v2, Network v2
|
2015-11-24 07:52:43 -06:00
|
|
|
|
|
|
|
security group create
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Create a new security group
|
|
|
|
|
|
|
|
.. program:: security group create
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack security group create
|
2015-11-24 07:52:43 -06:00
|
|
|
[--description <description>]
|
2016-03-11 08:11:12 -06:00
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
2018-02-24 09:13:48 +00:00
|
|
|
[--tag <tag> | --no-tag]
|
2015-11-24 07:52:43 -06:00
|
|
|
<name>
|
|
|
|
|
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
Security group description
|
|
|
|
|
2016-03-11 08:11:12 -06:00
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
Owner's project (name or ID)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --project-domain <project-domain>
|
|
|
|
|
|
|
|
Domain the project belongs to (name or ID).
|
|
|
|
This can be used in case collisions between project names exist.
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2018-02-24 09:13:48 +00:00
|
|
|
.. option:: --tag <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*
|
|
|
|
|
2015-11-24 07:52:43 -06:00
|
|
|
.. describe:: <name>
|
|
|
|
|
|
|
|
New security group name
|
|
|
|
|
|
|
|
security group delete
|
|
|
|
---------------------
|
|
|
|
|
2016-06-12 12:50:30 +08:00
|
|
|
Delete security group(s)
|
2015-11-24 07:52:43 -06:00
|
|
|
|
|
|
|
.. program:: security group delete
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack security group delete
|
2016-06-12 12:50:30 +08:00
|
|
|
<group> [<group> ...]
|
2015-11-24 07:52:43 -06:00
|
|
|
|
|
|
|
.. describe:: <group>
|
|
|
|
|
2016-06-12 12:50:30 +08:00
|
|
|
Security group(s) to delete (name or ID)
|
2015-11-24 07:52:43 -06:00
|
|
|
|
|
|
|
security group list
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
List security groups
|
|
|
|
|
|
|
|
.. program:: security group list
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack security group list
|
2015-11-24 07:52:43 -06:00
|
|
|
[--all-projects]
|
2016-08-16 16:00:32 +07:00
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
2018-02-24 09:13:48 +00:00
|
|
|
[--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]]
|
|
|
|
[--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
|
2015-11-24 07:52:43 -06:00
|
|
|
|
|
|
|
.. option:: --all-projects
|
|
|
|
|
|
|
|
Display information from all projects (admin only)
|
|
|
|
|
2016-02-09 07:21:01 -06:00
|
|
|
*Network version 2 ignores this option and will always display information*
|
2016-04-11 13:45:12 -05:00
|
|
|
*for all projects (admin only).*
|
2016-02-09 07:21:01 -06:00
|
|
|
|
2016-08-16 16:00:32 +07:00
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
List security groups according to the project (name or ID)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --project-domain <project-domain>
|
|
|
|
|
|
|
|
Domain the project belongs to (name or ID).
|
|
|
|
This can be used in case collisions between project names exist.
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2018-02-24 09:13:48 +00:00
|
|
|
.. option:: --tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List security groups which have all given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List security groups which have any given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --not-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude security groups which have all given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --not-any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude security groups which have any given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2015-11-24 07:52:43 -06:00
|
|
|
security group set
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Set security group properties
|
|
|
|
|
|
|
|
.. program:: security group set
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack security group set
|
2015-11-24 07:52:43 -06:00
|
|
|
[--name <new-name>]
|
|
|
|
[--description <description>]
|
2018-02-24 09:13:48 +00:00
|
|
|
[--tag <tag>] [--no-tag]
|
2015-11-24 07:52:43 -06:00
|
|
|
<group>
|
|
|
|
|
|
|
|
.. option:: --name <new-name>
|
|
|
|
|
|
|
|
New security group name
|
|
|
|
|
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
New security group description
|
|
|
|
|
2018-02-24 09:13:48 +00:00
|
|
|
.. option:: --tag <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
|
|
|
|
|
2015-11-24 07:52:43 -06:00
|
|
|
.. describe:: <group>
|
|
|
|
|
|
|
|
Security group to modify (name or ID)
|
|
|
|
|
|
|
|
security group show
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Display security group details
|
|
|
|
|
|
|
|
.. program:: security group show
|
|
|
|
.. code:: bash
|
|
|
|
|
2016-12-20 09:26:15 +08:00
|
|
|
openstack security group show
|
2015-11-24 07:52:43 -06:00
|
|
|
<group>
|
|
|
|
|
|
|
|
.. describe:: <group>
|
|
|
|
|
|
|
|
Security group to display (name or ID)
|
2018-02-24 09:13:48 +00:00
|
|
|
|
|
|
|
security group unset
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Unset security group properties
|
|
|
|
|
|
|
|
.. program:: security group unset
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
openstack security group unset
|
|
|
|
[--tag <tag> | --all-tag]
|
|
|
|
<group>
|
|
|
|
|
|
|
|
.. option:: --tag <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:: <group>
|
|
|
|
|
|
|
|
Security group to modify (name or ID)
|