List metering labels

 
MethodURIDescription
GET/v2.0/metering-labels

Lists all l3 metering labels belonging to the specified tenant.

The list includes the unique ID for each metering labels.

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.220. List metering labels: JSON request

GET /v2.0/metering/metering-labels 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.221. List metering labels: JSON response

{
  "metering_labels": [
    {
      "tenant_id": "45345b0ee1ea477fac0f541b2cb79cd4",
      "description": "label1 description",
      "name": "label1",
      "id": "a6700594-5b7a-4105-8bfe-723b346ce866"
    },
    {
      "tenant_id": "45345b0ee1ea477fac0f541b2cb79cd4",
      "description": "label2 description",
      "name": "label2",
      "id": "e131d186-b02d-4c0b-83d5-0c0725c4f812"
    }
  ]
}

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


loading table of contents...