• Virtual Private Cloud

vpc
  1. Help Center
  2. Virtual Private Cloud
  3. API Reference
  4. OpenStack Neutron APIs
  5. Security Group
  6. Querying a Security Group Rule

Querying a Security Group Rule

Function

This interface is used to query details about a specific security group rule.

URI

GET /v2.0/security-group-rules/{security_groups_rules_id}

Request Message

None

Response Message

Table 1 Response parameter

Parameter

Type

Description

security_group_rule

Dict

Specifies the security group rule list. For details, see Table 2.

Example:

Example request

GET /v2.0/security-group-rules/1755bc80-cf3a-4f57-8ae9-d9796482ddc0

Example response

{
    "security_group_rule": {
        "remote_group_id": null, 
        "direction": "egress", 
        "remote_ip_prefix": null, 
        "protocol": null, 
        "tenant_id": "6fbe9263116a4b68818cf1edce16bc4f", 
        "port_range_max": null, 
        "security_group_id": "723bc02c-d7f7-49b5-b6ff-d08320f315e2", 
        "port_range_min": null, 
        "ethertype": "IPv4", 
        "description": null, 
        "id": "1755bc80-cf3a-4f57-8ae9-d9796482ddc0",
        "project_id": "6fbe9263116a4b68818cf1edce16bc4f", 
        "created_at": "2018-09-20T02:15:34",
        "updated_at": "2018-09-20T02:15:34"
    }
}

Status Codes

For details, see section Status Codes.