创建一个安全组名为:wocao
[root@controller ~]# openstack security group create wocao | |
---|---|
Field | Value |
created_at | 2019-05-15T03:24:15Z |
description | wocao |
id | 6db63e6d-4307-45f4-9d02-06d6c6352d03 |
name | wocao |
project_id | b03aac1f6ae94f7bada2afa8f2064312 |
revision_number | 1 |
rules | created_at='2019-05-15T03:24:15Z', direction='egress', ethertype='IPv4', id='43ecbfed-ddb8-490f-bc6d-2fb880d13859', updated_at='2019-05-15T03:24:15Z' |
created_at='2019-05-15T03:24:15Z', direction='egress', ethertype='IPv6', id='c2031dca-a10b-48f2-b490-59b888104101', updated_at='2019-05-15T03:24:15Z' | |
tags | [] |
updated_at | 2019-05-15T03:24:15Z |
查看安全组列表
[root@controller ~]# openstack security group list | ||||
---|---|---|---|---|
ID | Name | Description | Project | Tags |
1f24ec9a-b27e-448e-b43a-140c62353f3d | default | Default security group | b03aac1f6ae94f7bada2afa8f2064312 | [] |
499caef4-117b-46c9-9e5d-0ce5edc1df63 | default | Default security group | [] | |
6db63e6d-4307-45f4-9d02-06d6c6352d03 | wocao | wocao | b03aac1f6ae94f7bada2afa8f2064312 | [] |
ed06d8ce-34ec-4b13-bc91-1d7983db7a63 | default | Default security group | ad8d7966165b4619aab21300e50f7020 | [] |
查看wocao安全组信息
[root@controller ~]# openstack security group show wocao | |
---|---|
Field | Value |
created_at | 2019-05-15T03:24:15Z |
description | wocao |
id | 6db63e6d-4307-45f4-9d02-06d6c6352d03 |
name | wocao |
project_id | b03aac1f6ae94f7bada2afa8f2064312 |
revision_number | 1 |
rules | created_at='2019-05-15T03:24:15Z', direction='egress', ethertype='IPv6', id='c2031dca-a10b-48f2-b490-59b888104101', updated_at='2019-05-15T03:24:15Z' |
created_at='2019-05-15T03:24:15Z', direction='egress', ethertype='IPv4', id='43ecbfed-ddb8-490f-bc6d-2fb880d13859', updated_at='2019-05-15T03:24:15Z' | |
tags | [] |
updated_at | 2019-05-15T03:24:15Z |
创建自定义描述的安全组:
创建一个名字为wocaonima的安全组---描述信息为:lalala
[root@controller ~]# openstack security group create wocaonima --description lalala | |
---|---|
Field | Value |
created_at | 2019-05-15T07:10:19Z |
description | lalala |
id | 25f4f833-7188-46eb-b14d-d0ac47e0d9f8 |
name | wocaonima |
project_id | b03aac1f6ae94f7bada2afa8f2064312 |
revision_number | 1 |
rules | created_at='2019-05-15T07:10:19Z', direction='egress', ethertype='IPv6', id='ddb692d4-df66-4e72-aa7b-0e409777ccf6', updated_at='2019-05-15T07:10:19Z' |
created_at='2019-05-15T07:10:19Z', direction='egress', ethertype='IPv4', id='f905b968-4a01-4e93-8151-f8e5ad32e791', updated_at='2019-05-15T07:10:19Z' | |
tags | [] |
updated_at | 2019-05-15T07:10:19Z |
创建后进行查看
[root@controller ~]# openstack security group list | ||||
---|---|---|---|---|
ID | Name | Description | Project | Tags |
1f24ec9a-b27e-448e-b43a-140c62353f3d | default | Default security group | b03aac1f6ae94f7bada2afa8f2064312 | [] |
25f4f833-7188-46eb-b14d-d0ac47e0d9f8 | wocaonima | lalala | b03aac1f6ae94f7bada2afa8f2064312 | [] |
499caef4-117b-46c9-9e5d-0ce5edc1df63 | default | Default security group | [] | |
a6ee7c0f-5d00-4f2c-8aae-8e36b4263879 | wocao | wocao | b03aac1f6ae94f7bada2afa8f2064312 | [] |
ed06d8ce-34ec-4b13-bc91-1d7983db7a63 | default | Default security group | ad8d7966165b4619aab21300e50f7020 | [] |