• 安全组


    1、列出安全组

    neutron security-group-list
    +--------------------------------------+------------------------+-----------------------------+
    | id | name | description |
    +--------------------------------------+------------------------+-----------------------------+
    | 3240b9f1-aa38-4c2b-b54f-c0bef3550acf | default | default |
    | 97dec244-2ea1-403d-98ee-e10e14c9439d | default_group | default_group |
    | b059a668-a1ae-43d4-93d7-4ed81facb069 | default_group | default_group |
    | b91fd4f2-9f25-4655-9798-307b356a4313 | default | default |
    | c02c6a2a-49ef-415c-9d58-98ec2c773ff1 | default | default |
    | c060196a-7927-463e-b621-7b4e7906215a | test-hzb | fffffff |
    | c8ad80b9-5dcc-4c04-96dc-7e300ff89846 | default | default |
    | de393112-af00-496c-be06-527f68d6c7f9 | scalr.1513b8ee.ip-pool | Scalr system security group |
    +--------------------------------------+------------------------+-----------------------------+

    2、查看安全组

    [root@node-10 nova]# neutron security-group-show 52fdd415-17ff-4032-8bc6-d34996b191b5
    +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Field                | Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
    +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | description          | default                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
    | id                   | 52fdd415-17ff-4032-8bc6-d34996b191b5                                                                                                                                                                                                                                                                                                                                                                                                                                 |
    | name                 | default                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
    | security_group_rules | {"tcp_flags": null, "remote_group_id": null, "direction": "egress", "protocol": null, "rate": null, "remote_ip_prefix": null, "port_range_max": null, "period": null, "id": "289e4934-f2d9-4fff-9348-ae31d716f034", "security_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "state": null, "block_time": null, "port_range_min": null, "tenant_id": "f1b569fe7ab64a6286f66a990f69eb6d", "action": null, "ethertype": "IPv4"}                                    |
    |                      | {"tcp_flags": null, "remote_group_id": null, "direction": "egress", "protocol": null, "rate": null, "remote_ip_prefix": null, "port_range_max": null, "period": null, "id": "5c7ff87c-acdc-4eb9-8583-d24afc82df86", "security_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "state": null, "block_time": null, "port_range_min": null, "tenant_id": "f1b569fe7ab64a6286f66a990f69eb6d", "action": null, "ethertype": "IPv6"}                                    |
    |                      | {"tcp_flags": null, "remote_group_id": null, "direction": "ingress", "protocol": "icmp", "rate": 1, "remote_ip_prefix": "0.0.0.0/0", "port_range_max": null, "period": 1, "id": "d62720e7-c65f-45df-bd66-6adb21fb3ef8", "security_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "state": null, "block_time": null, "port_range_min": null, "tenant_id": "f1b569fe7ab64a6286f66a990f69eb6d", "action": null, "ethertype": "IPv4"}                                |
    |                      | {"tcp_flags": null, "remote_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "direction": "ingress", "protocol": null, "rate": null, "remote_ip_prefix": null, "port_range_max": null, "period": null, "id": "f08782d5-bea1-4136-99d2-ee03fe435b30", "security_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "state": null, "block_time": null, "port_range_min": null, "tenant_id": "f1b569fe7ab64a6286f66a990f69eb6d", "action": null, "ethertype": "IPv4"} |
    |                      | {"tcp_flags": null, "remote_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "direction": "ingress", "protocol": null, "rate": null, "remote_ip_prefix": null, "port_range_max": null, "period": null, "id": "f512ecc9-f000-4bb9-9c03-58add2ad0a69", "security_group_id": "52fdd415-17ff-4032-8bc6-d34996b191b5", "state": null, "block_time": null, "port_range_min": null, "tenant_id": "f1b569fe7ab64a6286f66a990f69eb6d", "action": null, "ethertype": "IPv6"} |
    | tenant_id            | f1b569fe7ab64a6286f66a990f69eb6d                                                                                                                                                                                                                                                                                                                                                                                                                                     |
    +----------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

    3、删除安全组

    neutron security-group-delete c8ad80b9-5dcc-4c04-96dc-7e300ff89846

  • 相关阅读:
    计蒜客 聪明的班主任(思维)
    codeforces 456 E. Civilization(并查集+数的直径)
    codeforces 456 D. A Lot of Games(字典数+博弈+思维+树形dp)
    codeforces 233 D. Table(思维+dp )
    codeforces 233 C. Cycles(贪心+思维)
    codeforces 814 D. An overnight dance in discotheque (贪心+bfs)
    codeforces 814 C. An impassioned circulation of affection(二分+思维)
    codeforces 813 D. Two Melodies(dp)
    Atcoder F
    Java正则表达式
  • 原文地址:https://www.cnblogs.com/boshen-hzb/p/8033650.html
Copyright © 2020-2023  润新知