GetHostAccounts


Definition

Retrieve a list of all Web hosting accounts in a domain name account, with attributes.

Usage

Use this command to list Web hosting accounts and their current configurations.

Availability

All resellers have access to this command.

Implementation on eNom.com

Log on to resellertest.enom.com with Login ID resellid, password resellpw.

https://resellertest.enom.com/wsg/

In the left-hand menu, the manage link calls the GetHostAccounts command.

Constraints

The query must meet the following requirements:

  • The login ID and password must be valid.

Input parameters

Build the query string using this syntax:

https://resellertest.enom.com/interface.asp?
command=nameofcommand&uid=yourloginid&pw=yourpassword
&paramname=paramvalue&nextparamname=nextparamvalue

 

Parameter Status Description Max Size
UID Required Account login ID 20
PW Required Account password 20
ResponseType Optional Format of response. Options are Text (default), HTML, or XML. 4

 

Returned parameters and values

Parameter Description
WebHostIDX Responses in Text format are numbered, X=1 to PackageCount ID number of the Web hosting account, from our internal records
HostAccountX Name of the Web hosting account, assigned by the user
WebStorageX Amount of Web storage available to this Web hosting account
BandWidthX Amount of bandwidth available to this Web hosting account
SQLSizeX Amount of SQL database storage available to this Web hosting account
DatabaseTypeX Type of database, chosen by the user
POPMailBoxesX Number of POP mailboxes available to this Web hosting account
OverageX Overage handling method, chosen by the user
BillingDateX Next billing date for this Web hosting account
StatusX Status of this Web hosting account
OSTypeX Operating system of the Web server for this Web hosting account
TerminateX Terminate flag. If True, this Web hosting account will be deleted at the end of this billing period.
TerminateDateX Date on which this Web hosting account will be deleted, if Terminate=True
PackageCount Number of Web hosting accounts in this domain name account
Command Name of command executed
Language Language of response messages
ErrCount The number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
Err(x) Error messages explaining the failure. These can be presented as is back to the client.
Done True indicates this entire response has reached you successfully.

 

Notes

  • The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.
  • Check the return parameter ErrCount. If greater than 0 the transaction failed. The parameter Err(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.

Example