Product SiteDocumentation Site

5.3. Example response from listUsageRecords

All CloudStack API requests are submitted in the form of a HTTP GET/POST with an associated command and any parameters. A request is composed of the following whether in HTTP or HTTPS:
            <listusagerecordsresponse>
                  <count>1816</count>
                 <usagerecord>
                    <account>user5</account>
                    <accountid>10004</accountid>
                    <domainid>1</domainid>
                    <zoneid>1</zoneid>
                        <description>i-3-4-WC running time (ServiceOffering: 1) (Template: 3)</description>
                    <usage>2.95288 Hrs</usage>
                       <usagetype>1</usagetype>
                    <rawusage>2.95288</rawusage>
                       <virtualmachineid>4</virtualmachineid>
                    <name>i-3-4-WC</name>
                       <offeringid>1</offeringid>
                    <templateid>3</templateid>
                    <usageid>245554</usageid>
                    <type>XenServer</type>
                    <startdate>2009-09-15T00:00:00-0700</startdate>
                    <enddate>2009-09-18T16:14:26-0700</enddate>
                  </usagerecord>

               … (1,815 more usage records)
            </listusagerecordsresponse>