Content Type: application/vnd.csp.account-info+xml
This content type represents information about an account. Particularly, storage and bandwidth quota are reported using this content type.
Elements
account-info
Elements
username
Reports the account name associated with the account.
Type: xs:string
storage
Reports the storage quota information
Elements
allocated
Reports the account’s allocated storage quota.
Type: xs:string
used
Reports the account’s current storage usage.
Type: xs:string
bandwidth
Reports on aspects of the account’s bandwidth usage.
Elements
allocated
Reports the account’s allocated “public” bandwidth quota.
Type: xs:string
total
Reports the account’s total bandwidth usage. total = public + private
Type: xs:string
public
Reports the “public” bandwidth used by this account for the current billing cycle. The meaning of “public” bandwidth is defined by the service provider, but generally means data transfer, which uses the service provider’s connection to the outside internet.
Type: xs:string
private
Reports the “private” bandwidth used by this account for the current billing cycle. The meaning of “private” bandwidth is defined by the service provider but general means data transfer, which uses only the service provider’s internal, privately-owned network.
Type: xs:string
Schema Definition
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="account-info">
<xs:complexType>
<xs:all>
<xs:element name="username" type="xs:string"/>
<xs:element name="storage">
<xs:complexType>
<xs:all>
<xs:element name="allocated" type="xs:string"/>
<xs:element name="used" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="bandwidth">
<xs:complexType>
<xs:all>
<xs:element name="allocated" type="xs:string"/>
<xs:element name="total" type="xs:string"/>
<xs:element name="public" type="xs:string"/>
<xs:element name="private" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
Example
<account-info>
<username>username</username>
<storage>
<allocated>10000000000</allocated>
<used>5453859135</used>
</storage>
<bandwidth>
<allocated>10000000000</allocated>
<total>50481443</total>
<public>831557</public>
<private>3045522</private>
</bandwidth>
</account-info>