Resource path /Domain/Host/Update
https://testapi.internet.bs/Domain/Host/Update?apiKey=testapi&password=testpass&...
The command is intended to update a host; the command is replacing the current list of IP for the host with the new one you provide. It is accepting the same parameters as domainHostCreate and will return the same results.
HTTPS POST/GET Request parameters:
| Parameter name |
Description |
ApiKey |
The API key that we provided to you when you requested API access for your account |
Password |
The password we provided when you requested API access for your account |
host |
The host to be updated |
IP_List |
List of IP addresses separated by comma for the host. The list can be composed by just one or multiple IPs. |
ResponseFormat
(optional) |
This specifies how the response will be returned. Possible values are TEXT, JSON and XML.
The default value is TEXT however we encourage you to use JSON for easier result parsing (please refer to http://www.json.org for more details about JSON). |
Returned data:
STATUS=SUCCESS or PENDING or FAILURE
TRANSACTID=Transaction ID
HOST=The host name
IP1=IP address
...
...
IP_<N>= IP address
Example:
https://testapi.internet.bs/Domain/Host/Update?apiKey=testapi&password=testpass&host=ns1.test-api-domain7.net&IP_List=221.11.21.13,194.221.22.32
The result for this request is:
transactid=f0c548d2b3f8ecc25a5c1d94c3782173
status=SUCCESS
host=ns1.test-api-domain7.net
ip_0=221.11.21.13
ip_1=194.221.22.32