3.35.1. List security groups

 
MethodURIDescription
GET/v2/{tenant_id}/os-security-groups

Lists security groups.

Normal response codes: 200

 3.35.1.1. Request

This table shows the URI parameters for the list security groups request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

This operation does not require a request body.

 3.35.1.2. Response

 

Example 3.299. List security groups: JSON response

{
    "security_groups": [
        {
            "description": "default",
            "id": 1,
            "name": "default",
            "rules": [],
            "tenant_id": "openstack"
        }
    ]
}

 

Example 3.300. List security group: XML response

<?xml version='1.0' encoding='UTF-8'?>
<security_groups xmlns="http://docs.openstack.org/compute/api/v1.1">
  <security_group tenant_id="openstack" id="1" name="default">
    <description>default</description>
    <rules/>
  </security_group>
</security_groups>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...