Get Billing Statistics for Resource Pool
Use the following API call to view the billing statistics for a resource pool:
| |
XML Request Example
| |
JSON Request Example
| |
External network labels in vCloud and vCenter should be identical and unique, otherwise, network interface statistics will incorrect.
XML Output Example
| |
Where:
- id - the ID of this unit of statistics
- company_id - ID of the company with which the resource pool is associated
- vdc_id - ID of the resource pool to which these statistics refer
- cost - the total due for the resource pool, network usage and storage policy usage for the hour for which these statistics have been generated
- currency_code - the code of the currency you’re going to charge in
- stat_time - the time when the statistics have been recorded
- created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
- updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
- vdc_model - the type of resource pool (allocation, reservation or Pay-As-You-Go)
- status - whether the resource pool is enabled or not
- resource_elements - an array of parameters that refer to resource pools:
- cost - the total due for the resource
- compute zone - ID of the compute zone
- cpu_limit (for Pay-As-You-Go resource pool only) - the maximum amount of CPU resources which can be used
- cpu_allocation - the amount of CPU (GHz) allocated to this resource pool
- cpu_resource_guaranteed - the amount of CPU resources (%) guaranteed to this resource pool
- cpu_used - the amount of CPU resources used during the hour for which these statistics has been generated
- deployed_edge_gateways - the total number of edge gateways deployed within this resource pool
- deployed_org_networks - the total number of org networks deployed within this resource pool
- fast_provisioning_set - 1.0 if fast provisioning is enabled for the resource pool, otherwise 0.0
- memory_limit (for Pay-As-You-Go resource pool only) - the maximum amount of memory which can be used
- memory_allocation - the amount of memory (GB) allocated to this resource pool
- memory_resource_guaranteed - the amount of memory (%) guaranteed to this resource pool
- memory_used - the amount of memory (GB) used during the hour for which these statistics have been generated
- thin_provisioning_set - 1.0 if thin provisioning is enabled for the resource pool, otherwise 0.0
- vcpu_speed - the vCPU speed that can be consumed after the resource pool is created
- vs_count - the number of VSs deployed within the resource pool. The parameter equals 0.0 and does not work as expected as of 6.8. See Known Issues.
- vs_limit - the number of virtual servers that can be created within this resource pool (VS quota)
- data_stores - an array of parameters that refer to data stores:
- data_store_zone_id - the ID of the data store zone associated with the resource pool
- data_store_id - the ID of the data store associated with the resource pool
- cost - the total due for the resource
- allocated_amount - the amount of disk size allocated to this resource pool. For Pay-as-you-go, if the allocated amount is unlimited, Virtuozzo OnApp represents it as 99999 value.
- used_amount - the amount of disk size (GB) used during the hour for which these statistics have been generated
- network_interfaces - an array of parameters that refer to network interfaces:
- network_zone_id - ID of the network zone associated with the resource pool
- network_interface_id - ID of the network interface associated with the resource pool
- cost - the total due for the resource
- data_sent - the amount of data sent during the hour for which these statistics have been generated
- data_received - the amount of data received during the hour for which these statistics have been generated
- ip_addresses - the total number of IP addresses used at the point when these statistics were generated
Page History
v. 5.0
- Added the following parameters:
- cost
- compute zone
- deployed_org_networks
- data_store_zone_id
- network_zone_id
- cpu_limit
- memory_limit