hostingaccounts::list
Description
List your hosting accounts
Request details
-
Method
GET
-
URL
https://api.hostingreborn.com/hostingaccounts/list/
Arguments
- key
- API key
- exclude_deleted (boolean)
- Exclude details of hosting accounts that have been deleted
Responses
<?xml version="1.0" encoding="utf-8"?>
<hostingaccounts>
<hostingaccount>
<domain>test01.example.com</domain>
<username>test01</username>
<owner>user01@example.com</owner>
<creationtime>2008-09-11 11:57:43</creationtime>
<serverip>78.31.104.54</serverip>
<storagelimit>0</storagelimit>
<bandwidthlimit>0</bandwidthlimit>
<storageusage>0</storageusage>
<bandwidthusage>0</bandwidthusage>
<storagecost>0</storagecost>
<bandwidthcost>0</bandwidthcost>
<status>deleted</status>
</hostingaccount>
<hostingaccount>
<domain>test02.example.com</domain>
<username>test02</username>
<owner>user01@example.com</owner>
<creationtime>2008-09-11 11:57:43</creationtime>
<serverip>78.31.104.54</serverip>
<storagelimit>0</storagelimit>
<bandwidthlimit>0</bandwidthlimit>
<storageusage>36884542</storageusage>
<bandwidthusage>236532001</bandwidthusage>
<storagecost>0.55</storagecost>
<bandwidthcost>0.6680021</bandwidthcost>
<status>active</status>
</hostingaccount>
</hostingaccounts>
- hostingaccounts
- Container for list of hosting accounts
- hostingaccount
- See hostingaccount::get
Exceptions
Examples
List all hosting accounts
GET /hostingaccounts/list/
key=acbd18db4cc2f85cedef654fccc4a4d8
<?xml version="1.0" encoding="utf-8"?>
<hostingaccounts>
<hostingaccount>
<domain>test01.example.com</domain>
<username>test01</username>
<owner>user01@example.com</owner>
<creationtime>2008-09-11 11:57:43</creationtime>
<serverip>78.31.104.54</serverip>
<storagelimit>0</storagelimit>
<bandwidthlimit>0</bandwidthlimit>
<storageusage>0</storageusage>
<bandwidthusage>0</bandwidthusage>
<storagecost>0</storagecost>
<bandwidthcost>0</bandwidthcost>
<status>deleted</status>
</hostingaccount>
<hostingaccount>
<domain>test02.example.com</domain>
<username>test02</username>
<owner>user01@example.com</owner>
<creationtime>2008-09-11 11:57:43</creationtime>
<serverip>78.31.104.54</serverip>
<storagelimit>0</storagelimit>
<bandwidthlimit>0</bandwidthlimit>
<storageusage>36884542</storageusage>
<bandwidthusage>236532001</bandwidthusage>
<storagecost>0.55</storagecost>
<bandwidthcost>0.6680021</bandwidthcost>
<status>active</status>
</hostingaccount>
</hostingaccounts>
List hosting accounts excluding those that have been deleted
GET /hostingaccounts/list/
key=acbd18db4cc2f85cedef654fccc4a4d8
&exclude_deleted=true
<?xml version="1.0" encoding="utf-8"?>
<hostingaccounts>
<hostingaccount>
<domain>test02.example.com</domain>
<username>test02</username>
<owner>user01@example.com</owner>
<creationtime>2008-09-11 11:57:43</creationtime>
<serverip>78.31.104.54</serverip>
<storagelimit>0</storagelimit>
<bandwidthlimit>0</bandwidthlimit>
<storageusage>36884542</storageusage>
<bandwidthusage>236532001</bandwidthusage>
<storagecost>0.55</storagecost>
<bandwidthcost>0.6680021</bandwidthcost>
<status>active</status>
</hostingaccount>
</hostingaccounts>