Versions Compared

Key

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

...

add
URL/api/v1/api.php?target=dnsServer&action=add
DescriptionAdds a new DNS Server
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Add Successful."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
serverSTRINGdns.yourdomain.comAddress of the DNS Server
usernameSTRINGbobuserLogin name for Server
passwordSTRINGpassword1Login password for Server
transferTypeSTRINGSCPProtocol
Optional Parameters

There optional parameters vary according to what type of server is being configured.

NameTypeExampleDescription
customerNameSTRING/tmp/zonesCustomer Name
remoteDirectorySTRING/tmp/zonesZone Directory on Server
namedConfPathSTRING/tmpZone Path
preCommandSTRING/path/to/stuff/precommand
postCommandSTRING/path/to/stuff/postcommand

...

update
URL/api/v1/api.php?target=dnsServer&action=update
DescriptionUpdates an existing DNS Server with new information.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Update Successful."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
usernameSTRINGbobuserLogin name for Server
passwordSTRINGpassword1Login password for Server
transferTypeSTRINGSCPProtocol
Optional Parameters

There optional parameters vary according to what type of server is being configured.

NameTypeExampleDescription
customerNameSTRING/tmp/zonesCustomer Name
remoteDirectorySTRING/tmp/zonesZone Directory on Server
namedConfPathSTRING/tmpZone Path
preCommandSTRING/path/to/stuff/precommand
postCommandSTRING/path/to/stuff/postcommand
getActivetransferAll
URL/api/v1/api.php?target=dnsServer&action=getActivetransferServer
DescriptionReturns the details of the active DNS ServerPerforms a full zone push on a DNS Server, executing pre and post commands, transferring files, and restarting services.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Active Server FetchedTransfer Successful.","data":}
ERROR:{"idsuccess":"3"0, "servermessage":"trace.6connect.com","username":"bremer","password":"asdfd3fs", "transferType":"SCP","remoteDirectory":"\/tmp\/zones2","namedConfPath":null,"active":"1"}}
ERROR:{"success":0, "message":"error message"}
Data Detail:
NameTypeDescription
idINTServer ID
serverSTRINGServer Name
usernameSTRINGLogin Name
passwordCRYPTLogin Password
customerNameSTRINGCustomer 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?
setActive
URL/api/v1/api.php?target=dnsServer&action=setActive
DescriptionDesignates a DNS server as Active. De-activates any existing Active servers.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Active Server Updated."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
idNUMERIC5ID of server to activate.
Example URL/api/v1/api.php?target=dnsServer&action=setActive&id=5

Examples:

{"success":0, "message":"error message"}
error message"}
Required Parameters
NameTypeExampleDescription
pushINT1The ID of the server to push zones to
transferAll
URL/api/v1/api.php?target=dnsServer&action=setActive
DescriptionTransfer all written Zone files from the 6Connect instance to the Active DNS Server.
Returns
SUCCESSFUL:{"success":1,"message":"Transfer Successful."}
ERROR:
transferSingle
URL/api/v1/api.php?target=dnsServer&action=transferSingle
Description

Transfers a single Zone file

from the 6Connect instance to the Active DNS Server

to all its associated DNS Servers, along with updated server configurations.

Performs pre and post commands on the target servers, transfers the zone file(s), and restarts services.

Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Updated Zone: $name.zone on $server via SCP"}
ERROR:{"success":0, "message":"error message"}
Required Parameters
The CompanyID who owns the Zone
NameTypeExampleDescriptioncompanyIDNUMERIC5
zoneIDNUMERIC35The ZoneIDID of the zone to push

 

DNS Zone Control

get
URL/api/v1/api.php?target=zone&action=get
DescriptionAccepts search criteria to retrieve a list of all matching DNS Zones and associated Records. Search can be performed on any combination of Zone and Record attributes.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Search Successful.","data":[{"zoneId":"64","zoneName":"bind.com","zoneResourceId":"483","zoneSerial":"2012121805","zoneRefresh":"0","zoneRetry":"0","zoneExpire":"0","zoneMinimum":"0","zoneSOA":"","zoneTags":"Aaron, personal","zoneTTL":"3600","zoneEnableDNSSEC":"1","recordId":"16450","recordHost":"ns1","recordType":"A","recordValue":"1.2.3.5","recordDescription":"","recordTTL":"","recordOrdering":"4","assetId":"0","unpagedRows":"11672","recordHostAsset":0,"recordValueAsset":"447"}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
zoneIdINTThe Id of the Zone entry. A single Zone entry might have multiple Records.
zoneNameSTRINGThe Zone name.
zoneResourceIdINTThe resource Id associated with this Zone.
zoneSerialINTZone Serial.
zoneRefreshINTZone Refresh.
zoneRetryINTZone Retry.
zoneExpireINTZone Expire.
zoneMinimumINTZone Minimum.
zoneSOASTRINGZone SOA.
zoneTagsSTRINGAll the tags associated with this Zone.
zoneTTLSTRINGZone TTL.
zoneEnableDNSSECBOOLWhether or not DNSSEC is enabled for this Zone.
recordIdINTThe Id of this Record Entry. It is always included with its parent Zone.
recordHostSTRINGThe Hostname of this Record.
recordTypeSTRINGThe Record Type (MX,NS,A,PTR,etc)
recordValueSTRINGThe Value of this Record.
recordDescriptionSTRINGA short description of this Record.
recordTTLSTRINGThe TTL of this Record.
recordOrderingINTThe numerical order in which the record appears in the zone.
unpagedRowsINTIf pagination is used, this value will contain a total count of records had the pagination not been used.
assetIdINTThe numerical Id of the Asset best associated with this zone. Zero if such asset does not exist.
recordHostAssetINTThe numerical Id of the Asset best associated with this recordHost. Zero if such asset does not exist.
recordValueAssetINTThe numerical Id of the Asset best associated with this recordValue. Zero if such asset does not exist.
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1When 1, searches over the provided parameters using OR. If 0 or omitted, uses AND.
selectCountINT30When supplied only returns the first X entries
selectOffsetINT10When supplied, only returns entries after record X
sortArrayJSON{"zoneName":"desc","zoneMask":"asc"}A JSON-encoded object containing a list of columns to sort on and the direction in which to sort. Any API variable may be used for sorting. Valid sort directions are ASC and DESC.
searchForAssetsBOOL0When 1 or omitted, the search will return asset information. When 0, this information is not searched for.
NameTypeExampleDescription
zoneIdINT123The Zone Id to search for.
zoneNameSTRINGfooThe Zone Name to search for.
zoneResourceIdINT5The Resource Id to search for.
zoneSerialINT2012033001The Zone Serial to search for.
zoneRefreshINT36000The Zone Refresh to search for.
zoneRetryINT800The Zone Retry to search for.
zoneExpireINT6090000The Zone Expire to search for.
zoneMinimumINT10The Zone Minimum to search for.
zoneSOASTRING200The Zone SOA to search for.
zoneTagsSTRINGclient,productionZone Tags to search for.
zoneTTLINT3600The Zone TTL to search for.
zoneEnableDNSSECINT1Search based on DNSSEC settings.
recordIdINT123The Record Id to search for.
recordZoneIdINT123The parent Zone to search for.
recordHostSTRING@The Record Host to search for.
recordTypeSTRINGNSThe Record Type to search for.
recordValueSTRINGns1.dns.6connect.com.The Record Value to search for.
recordDescriptionSTRINGDescriptionSearch based on Record Description.
recordTTLSTRING3600The Record TTL to search for.

...