(Created page with "The server update RDNS command allows the RDNS record of an assigned IP address to be updated. The details on how to view all cu...") |
(→Required Data Parameters) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | The [[Server|server]] update [[glossary#RDNS|RDNS]] command allows the [[glossary#RDNS|RDNS]] record of an assigned IP address to be updated. The details on how to view all current [[glossary#RDNS|RDNS]] records using the [[glossary#API|API]] can be found on the [[Server View RDNS | + | The [[Server|server]] update [[glossary#RDNS|RDNS]] command allows the [[glossary#RDNS|RDNS]] record of an assigned IP address to be updated. The details on how to view all current [[glossary#RDNS|RDNS]] records using the [[glossary#API|API]] can be found on the [[Server View RDNS|view RDNS]] command page. |
==Path== | ==Path== | ||
*/server/rdns/{$serverid} | */server/rdns/{$serverid} | ||
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> | ||
− | + | {"success":"1","data":[{"result":"ok","success":"1","message":"RDNS set"}]} | |
− | + | ||
− | + | ||
</pre> | </pre> |
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 |
rdns={"IP_ADDRESS_HERE":"NEW_HOSTNAME_HERE.","IP_ADDRESS2_HERE":"NEW_HOSTNAME2_HERE."}
{"success":"1","data":[{"result":"ok","success":"1","message":"RDNS set"}]}