Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

get
URL/api/v1/api.php?target=dnsServer&action=get
DescriptionIf provided with an id, fetches that DNS Server from the database. If not, fetches a list of all stored DNS Servers
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Fetch Sucessful.","data":[{"id":"310","server":"trace.6connect.commrbomasm-dns-4.onnet.net","username":"bremeruser","password":"asdfasdfasdfvwvddp","transferTypeport":"SCP2600","remoteDirectorycustomer_name": "\/tmp\/zones2","namedConfPath":null,"activenull,"transfer_type":"SCP","remote_directory":"1zones"}, {"idnamed_conf_path":"4\/etc\/zones","serveractive":"6connect.com1","usernamepost_command":null,"bremerpre_command":null,"passworddyn_DNSSEC_contact":"1pw63bzij%7"null,"transferTypepowerdns_backend":"SCPBind","remoteDirectorydb_username":null,"\/tmp\/zones2","namedConfPath":"\/var\/named\/zones","active":"0"},{"id":"9","server":"dns.6connect.com", "username":"bremer", "password":"3435233","transferType":"SCP", "remoteDirectory": "\/zone","namedConfPath":null,"active":"0db_password":"(","db_port":null,"db_name":null,"server_type":"slave","SOA":null,"master_id":null,"options":"{\"customer_name\":\"\",\"server_type\":\"slave\",\"SOA\":\"\",\"remote_directory\":\"zones\",\"named_conf_path\":\"\\\/etc\\\/zones\",\"dyn_DNSSEC_contact\":\"\",\"post_command\":\"\",\"pre_command\":\"\",\"powerdns_backend\":\"Bind\",\"db_username\":\"\",\"db_password\":\"(\",\"db_port\":\"\",\"db_name\":\"\",\"enable_views\":\"1\"}","testID":"963","zoneCount":"8","views":"[{\"id\":\"1\",\"server_id\":\"10\",\"name\":\"_6connectDefault\",\"extras\":\"[]\",\"description\":\"\",\"timestamp\":\"1371789181\"},{\"id\":\"3\",\"server_id\":\"10\",\"name\":\"internal\",\"extras\":\"[]\",\"description\":null,\"timestamp\":\"1374686650\"}]"}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
idINTServer ID
serverSTRINGServer Name
usernameSTRINGLogin Name
passwordCRYPTLogin Password
customerNameCRYPTCustomer Name
transferTypeSTRINGType of Transfer
remoteDirectorySTRINGThe remote path this server is configured for
namedConfPathSTRINGInternal configuration path
preCommandSTRINGThe command to be run on the DNS server before the zone push.
postCommandSTRINGThe command to be run on the DNS server after the zone push.
activeBOOLIs this the currently active DNS server?
Optional Parameters
NameTypeExampleDescription
idINTEGER15The server id to fetch.

...