简体   繁体   中英

Openstack Horizon Fetch Instances

I would like to fetch all instances and calculate the uptime of the vcpu ram etc.

upon checking out the existing horizon code which sits at openstack_dashboard/dashboard/usage

usage = api.nova.usage_get(self.request, self.tenant_id, start, end)

I have searched the internet for a documentation for it but i am so unlucky to find one. , I would like to know what will be in the arguments start and end.

Thanks, I hope someone who could lead me into this.

您可以使用./manage.py shell调试./manage.py shell

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM