• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Security groups and rules
  6. Show security group rule

Show security group rule

Function Description

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

Interface Format

Method

URI

Description

GET

/v2.0/security-group-rules/{security-groups-rules-id}

Queries details about the specified security group rule.

Restrictions

N/A

Request Parameter

None

Response Parameter

Parameter

Type

Mandatory

Description

security_group_rule

Dict

Yes

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

Request Example

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

Response Example

{
    "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"
    }
}

Error Code

See section Return Code Processing.