|  | <?xml version='1.0' encoding='utf-8' ?> | 
|  | <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ | 
|  | <!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent"> | 
|  | %BOOK_ENTITIES; | 
|  | ]> | 
|  |  | 
|  | <!-- Licensed to the Apache Software Foundation (ASF) under one | 
|  | or more contributor license agreements.  See the NOTICE file | 
|  | distributed with this work for additional information | 
|  | regarding copyright ownership.  The ASF licenses this file | 
|  | to you under the Apache License, Version 2.0 (the | 
|  | "License"); you may not use this file except in compliance | 
|  | with the License.  You may obtain a copy of the License at | 
|  |  | 
|  | http://www.apache.org/licenses/LICENSE-2.0 | 
|  |  | 
|  | Unless required by applicable law or agreed to in writing, | 
|  | software distributed under the License is distributed on an | 
|  | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | 
|  | KIND, either express or implied.  See the License for the | 
|  | specific language governing permissions and limitations | 
|  | under the License. | 
|  | --> | 
|  |  | 
|  | <section id="example-response-from-listUsageRecords"> | 
|  | <title>Example response from listUsageRecords</title> | 
|  | <para> | 
|  | All &PRODUCT; 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:</para> | 
|  |  | 
|  | <programlisting> | 
|  | <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> | 
|  | </programlisting> | 
|  | </section> | 
|  |  |