Show Security Group

 

This operation does not require a request body.

This operation returns a response body that contains the description, name, ID, and security group rules associated with the specified security group and tenant ID.

MethodURIDescription
GET/security-groups/{security_group_id}

Shows information for a specified security group.

Normal Response Code(s): 200

Error Response Code(s): unauthorized (401), itemNotFound (404)

 Request

The following table shows the URI parameters for the Show Security Group Request:

NameTypeDescription

{security_group_id}

​Uuid

The unique identifier of the security group.

 

Example 5.53. Show Security Group Request: JSON

GET /v2.0/security-groups/85cc3048-abc3-43cc-89b3-377341426ac5
Accept: application/json

 Response

 

Example 5.54. Show Security Group Response: JSON

{
   "security_group":{
      "description":"default",
      "id":"85cc3048-abc3-43cc-89b3-377341426ac5",
      "name":"default",
      "security_group_rules":[
         {
            "direction":"egress",
            "ethertype":"IPv6",
            "id":"3c0e45ff-adaf-4124-b083-bf390e5482ff",
            "port_range_max":null,
            "port_range_min":null,
            "protocol":null,
            "remote_group_id":null,
            "remote_ip_prefix":null,
            "security_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
         },
         {
            "direction":"egress",
            "ethertype":"IPv4",
            "id":"93aa42e5-80db-4581-9391-3a608bd0e448",
            "port_range_max":null,
            "port_range_min":null,
            "protocol":null,
            "remote_group_id":null,
            "remote_ip_prefix":null,
            "security_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
         },
         {
            "direction":"ingress",
            "ethertype":"IPv6",
            "id":"c0b09f00-1d49-4e64-a0a7-8a186d928138",
            "port_range_max":null,
            "port_range_min":null,
            "protocol":null,
            "remote_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "remote_ip_prefix":null,
            "security_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
         },
         {
            "direction":"ingress",
            "ethertype":"IPv4",
            "id":"f7d45c89-008e-4bab-88ad-d6811724c51c",
            "port_range_max":null,
            "port_range_min":null,
            "protocol":null,
            "remote_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "remote_ip_prefix":null,
            "security_group_id":"85cc3048-abc3-43cc-89b3-377341426ac5",
            "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
         }
      ],
      "tenant_id":"e4f50856753b4dc6afee5fa6b9b6c550"
   }
}

Log a bug against this page


loading table of contents...