Show metering label rule

 
MethodURIDescription
GET/v2.0/metering-label-rules/{metering-label-rule-id}

Shows detailed informations for a specified metering label rule.

This operation does not require a request body.

This operation returns a response body, which contains the following informations about the metering label rule:

  • direction. Either ingress or egress.

  • excluded. Either True or False.

  • The ID for the specified metering label rule

  • The remote IP prefix

  • The metering label ID for the metering label with which the rule is associated

Normal response codes: 200

Error response codes: unauthorized (401), itemNotFound (404)

 Request

This table shows the URI parameters for the show metering label rule request:

NameTypeDescription

{metering-label-rule-id}

​Uuid

The unique identifier of metering label rule.

 

Example 4.232. Show metering label rule: JSON request

GET /v2.0/metering/metering-label-rules/9536641a-7d14-4dc5-afaf-93a973ce0eb8 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.233. Show metering label rule: JSON response

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

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


loading table of contents...