Server View RDNS

From INAP Dropzone API
(Difference between revisions)
Jump to: navigation, search
(Created page with "The server view RDNS command allows all the RDNS records for a specific server to be viewed. The details on how to update an [[g...")
 
Line 14: Line 14:
 
==Required Data Parameters==
 
==Required Data Parameters==
 
*{$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={"IP_ADDRESS_HERE":"NEW_HOSTNAME_HERE","IP_ADDRESS2_HERE":"NEW_HOSTNAME2_HERE"}
  
 
==Optional Data Parameters==
 
==Optional Data Parameters==
Line 22: Line 24:
 
stdClass Object(
 
stdClass Object(
 
   [success] => TRUE/FALSE
 
   [success] => TRUE/FALSE
  [data] =>Array(
 
    [0] => stdClass Object(
 
      [ip] => The IP address.
 
      [ttl] => The time to live value.
 
      [data] => The hostname of the IP address.
 
    )
 
  )
 
 
)
 
)
 
</pre>
 
</pre>

Revision as of 13:21, 6 April 2012

The server view RDNS command allows all the RDNS records for a specific server to be viewed. The details on how to update an RDNS record using the API can be found on the update 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"}

Optional Data Parameters

  • None

Returned Data

stdClass Object(
  [success] => TRUE/FALSE
)
Personal tools