2. billing – Billing

Billing functionality.

2.1. Resources

2.1.1. Billing

class billing.Billing

This resource represens a query into the available billing data for users and the virtual machine resources used by those users.

Resource URI:

/modules/billingreports/
GET(start_date, end_data)

Retrieve the virtual machine resource usage data in CSV format by submitting an HTTP GET request.

Note

This resource requires read permission on both the virtual machine and the elastic_hosting extension module when using the HTTP GET method.

Parameters:
  • start_date – The starting date of the resource usage data (YYYY:MM:DD:HH:mm:ss).
  • end_data – The ending data of the resource usage data (YYYY:MM:DD:HH:mm:ss).
Return type:

billing.RepBilling

2.2. Representations

2.2.1. RepBilling

class billing.RepBilling

This is a representation of the virtual machine resource usage for all users of the system.

Note

The first row in this representation is descriptive of the following rows. In this case, there are three hardware profiles. The number corresponding to each hardware profile, for each user row, indicates the number of hours that user has consumed the virtual machine resources required by that profile. The last column is disk space measured in MB.

Representation:

user,user_uuid,Small,Medium,Large,totalMBytes
customer1,7eabba12-12fe-11dd-8fd0-0019d2b28af0,0,0,0,0
customer2,09492bbc-3fd3-11de-82cf-001a929face2,0,3,0,1024

Table Of Contents

Previous topic

1. Authentication

Next topic

3. clone – Clone virtual machines.