List metering label rules

 
MethodURIDescription
GET/v2.0/metering-label-rules

Lists a summary of all l3 metering label rules belonging to the specified tenant.

The list provides the unique ID for each metering label rule.

This operation does not require a request body. This operation returns a response body.

Normal response codes: 200

Error response codes: unauthorized (401)

 Request

 

Example 4.228. List metering label rules: JSON request

GET /v2.0/metering/metering-label-rules HTTP/1.1
Host: controlnode:9696
User-Agent: python-neutronclient
Content-Type: application/json
Accept: application/json
X-Auth-Token: c52a1b304fec4ca0ac85dc1741eec6e2

This operation does not require a request body.

 Response

 

Example 4.229. List metering label rules: JSON response

{
  "metering_label_rules": [
    {
      "remote_ip_prefix": "20.0.0.0\/24",
      "direction": "ingress",
      "metering_label_id": "e131d186-b02d-4c0b-83d5-0c0725c4f812",
      "id": "9536641a-7d14-4dc5-afaf-93a973ce0eb8",
      "excluded": false
    },
    {
      "remote_ip_prefix": "10.0.0.0\/24",
      "direction": "ingress",
      "metering_label_id": "e131d186-b02d-4c0b-83d5-0c0725c4f812",
      "id": "ffc6fd15-40de-4e7d-b617-34d3f7a93aec",
      "excluded": false
    }
  ]
}

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


loading table of contents...