used resource count in tenant quotas

Registered by Olivier Pilotte

This blueprint has been superseded. See the newer blueprint "Adds a network-ip-usage api to fetch network and subnet IP usage counts" for updated plans.

Add the used resource count when getting quotas information for a tenant.

Actually, there's no api call to get the information on used resources.
The goal is to return the count of used resources of a tenant.

There's already a way to show quotas of a tenant. And the payload contains these values:

* floatingip
* network
* port
* router
* security_group
* security_group_rule
* subnet

It is possible to count every resource. I propose to add these values to the quotas payload:

* used_floatingips
* used_networks
* used_ports
* used_routers
* used_security_group_rules
* used_security_groups
* used_subnets

It should then be easier to check for used resources.

Blueprint information

Status:
Complete
Approver:
Mark McClain
Priority:
Medium
Drafter:
Olivier Pilotte
Direction:
Needs approval
Assignee:
Olivier Pilotte
Definition:
Superseded
Series goal:
None
Implementation:
Needs Code Review
Milestone target:
milestone icon next
Started by
Olivier Pilotte
Completed by
Armando Migliaccio

Related branches

Sprints

Whiteboard

4-Mar (markmcclain): Deferring until Juno opens

Gerrit topic: https://review.openstack.org/#q,topic:bp/tenant-used-quotas,n,z

Addressed by: https://review.openstack.org/54170
    Add used resource count in quotasv2 extension

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.