Server Update RDNS

From INAP Dropzone API
(Difference between revisions)
Jump to: navigation, search
(Required Data Parameters)
 
(One intermediate revision by one user not shown)
Line 15: Line 15:
 
*{$serverid}: The server ID that is returned when using the [[Server List|list]] command.
 
*{$serverid}: The server ID that is returned when using the [[Server List|list]] command.
 
*{$rdns}: A [[glossary#JSON|JSON]] encoded array with all the [[glossary#RDNS|RDNS]] records to be updated, this variable is sent via [[glossary#POST|POST]].
 
*{$rdns}: A [[glossary#JSON|JSON]] encoded array with all the [[glossary#RDNS|RDNS]] records to be updated, this variable is sent via [[glossary#POST|POST]].
rdns={"IP_ADDRESS_HERE":"NEW_HOSTNAME_HERE","IP_ADDRESS2_HERE":"NEW_HOSTNAME2_HERE"}
+
rdns={"IP_ADDRESS_HERE":"NEW_HOSTNAME_HERE.","IP_ADDRESS2_HERE":"NEW_HOSTNAME2_HERE."}
 +
*The hostname must have a period(.) at the end.
  
 
==Optional Data Parameters==
 
==Optional Data Parameters==
Line 22: Line 23:
 
==Returned Data==
 
==Returned Data==
 
<pre>
 
<pre>
stdClass Object(
+
{"success":"1","data":[{"result":"ok","success":"1","message":"RDNS set"}]}
  [success] => TRUE/FALSE
+
)
+
 
</pre>
 
</pre>

Latest revision as of 18:09, 11 May 2017

The server update RDNS command allows the RDNS record of an assigned IP address to be updated. The details on how to view all current RDNS records using the API can be found on the view RDNS command page.

Contents

Path

  • /server/rdns/{$serverid}

Method

Availability

Required Data Parameters

  • {$serverid}: The server ID that is returned when using the list command.
  • {$rdns}: A JSON encoded array with all the RDNS records to be updated, this variable is sent via POST.

rdns={"IP_ADDRESS_HERE":"NEW_HOSTNAME_HERE.","IP_ADDRESS2_HERE":"NEW_HOSTNAME2_HERE."}

  • The hostname must have a period(.) at the end.

Optional Data Parameters

  • None

Returned Data

{"success":"1","data":[{"result":"ok","success":"1","message":"RDNS set"}]}
Personal tools