Modify Child Name Server IP Addresses Using the API
When you want to update the IP address of a child name server for a domain registration order. This article explains how to modify the associated IP address of a child name server using the API and retrieve the action status details.
Description
Modifies the IP address associated with the specified Child Name Server of the specified Domain Registration Order.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Authentication Parameter |
| api-key | String | Required | Authentication Parameter |
| order-id | Integer | Required | Order Id of the Domain Registration Order whose Child Name Server IP you want to change. |
| cns | String | Required | Name of the Child Name Server whose IP you want to change. |
| old-ip | String | Required | Currently associated IP address with the specified Child Name Server. |
| new-ip | String | Required | New IP address that you want to associate with the specified Child Name Server. |
HTTP Method
POST
Example Test URL Request
https://test.httpapi.com/api/domains/modify-cns-ip.json?auth-userid=0&api-key=key&order-id=0&cns=ns1.domain.com&old-ip=0.0.0.0&new-ip=1.1.1.1
Response
Returns a hash map containing the below details:
-
Domain Name (description)
-
Order ID of the Domain Registration Order (entityid)
-
Action Type (actiontype)
-
Description of the Child Name Server IP Modification Action (actiontypedesc)
-
Action ID of the Child Name Server IP Modification Action (eaqid)
-
Child Name Server IP Modification Action Status (actionstatus)
-
Description of the Child Name Server IP Modification Action Status (actionstatusdesc)
In case of any errors, a status key with value as ERROR alongwith an error message will be returned.