You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

DNS Server Control

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":"3","server":"trace.6connect.com","username":"bremer", "password":"asdfasdfasdf","transferType":"SCP","remoteDirectory": "\/tmp\/zones2","namedConfPath":null,"active":"1"}, {"id":"4","server":"6connect.com","username":"bremer", "password":"1pw63bzij%7","transferType":"SCP","remoteDirectory": "\/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":"0"}]}
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.
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
NameTypeExampleDescription
customerNameSTRING/tmp/zonesCustomer Name
remoteDirectorySTRING/tmp/zonesZone Directory on Server
namedConfPathSTRING/tmpZone Path
preCommandSTRING/path/to/stuff/precommand
postCommandSTRING/path/to/stuff/postcommand
delete
URL/api/v1/api.php?target=dnsServer&action=delete
DescriptionDeletes a DNS Server
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Delete Successful."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
idNUMERIC5ID of server to delete.
Example URL/api/v1/api.php?target=dnsServer&action=delete&id=5
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
NameTypeExampleDescription
customerNameSTRING/tmp/zonesCustomer Name
remoteDirectorySTRING/tmp/zonesZone Directory on Server
namedConfPathSTRING/tmpZone Path
preCommandSTRING/path/to/stuff/precommand
postCommandSTRING/path/to/stuff/postcommand
getActive
URL/api/v1/api.php?target=dnsServer&action=getActive
DescriptionReturns the details of the active DNS Server
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Active Server Fetched.","data":{"id":"3", "server":"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
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

Examples:

SUCCESSFUL:{"success":1,"message":"Transfer Successful."}
ERROR:{"success":0, "message":"error message"}
transferSingle
URL/api/v1/api.php?target=dnsServer&action=transferSingle
DescriptionTransfers a single Zone file from the 6Connect instance to the Active DNS Server.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Updated Zone: $name.zone on $server via SCP"}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
companyIDNUMERIC5The CompanyID who owns the Zone
zoneIDNUMERIC35The ZoneID

 

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.
search
URL/api/v1/api.php?target=zone&action=search
DescriptionAccepts search criteria to retrieve a list of all matching DNS Zones but NO associated Records. Search can be performed on any combination of Zone and Record attributes.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Search Successful.","data":[{"zoneId":"123","zoneName":"foobs.net","zoneResourceId":"483","zoneIpver":null,"zoneMask":null,"zoneSerial":"2012121803","zoneRefresh":null,"zoneRetry":null,"zoneExpire":null,"zoneMinimum":null,"zoneSOA":null,"zoneTags":"Aaron,Personal","zoneTTL":"3600","zoneEnableDNSSEC":"1","zoneLocalSigning":"1","assetId":"0","recordCount":"1","unpagedRows":"215"}]}
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.
assetIdINTThe numerical Id of the Asset best associated with this zone. Zero if such asset does not exist.
recordCountintHow many records are associated with this zone.
unpagedRowsINTIf pagination is used, this value will contain a total count of records had the pagination not been used.
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 paramenters 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.
update
URL/api/v1/api.php?target=zone&action=update
DescriptionFirst performs a search based on the submitted Zone and Record criteria, then performs an Update across those entries based on new values.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Update Successful."}
ERROR:{"success":0, "message":"error message"}
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 paramenters using OR. If 0 or omitted, uses AND.
NameTypeExampleDescription
searchZoneIdINT123The Zone Id to search for.
searchZoneNameSTRINGfooThe Zone Name to search for.
searchZoneResourceIdINT5The Resource Id to search for.
searchZoneSerialINT2012033001The Zone Serial to search for.
searchZoneRefreshINT36000The Zone Refresh to search for.
searchZoneRetryINT800The Zone Retry to search for.
searchZoneExpireINT6090000The Zone Expire to search for.
searchZoneMinimumINT10The Zone Minimum to search for.
searchZoneSOASTRING200The Zone SOA to search for.
searchZoneTagsSTRINGclient,productionZone Tags to search for.
searchZoneTTLINT3600The Zone TTL to search for.
searchZoneEnableDNSSECINT1Search based on DNSSEC settings.
searchRecordIdINT123The Record Id to search for.
searchRecordHostSTRING@The Record Host to search for.
searchRecordTypeSTRINGNSThe Record Type to search for.
searchRecordValueSTRINGns1.dns.6connect.com.The Record Value to search for.
searchRecordDescriptionSTRINGDescriptionSearch based on Record Description.
searchRecordTTLSTRING3600The Record TTL to search for.
NameTypeExampleDescription
updateZoneNameSTRINGfooThe Zone name to replace into the searched rows.
updateZoneResourceIdINT5The Resource Id to replace into the searched rows.
updateZoneSerialINT2012033001The Zone Serial to replace into the searched rows.
updateZoneRefreshINT36000The Zone Refresh to replace into the searched rows.
updateZoneRetryINT800The Zone Retry to replace into the searched rows..
updateZoneExpireINT6090000The Zone Expire to replace into the searched rows.
updateZoneMinimumINT10The Zone Minimum to replace into the searched rows.
updateZoneSOASTRING200The Zone SOA to replace into the searched rows.
updateZoneTagsSTRINGclient,productionZone Tags to replace into the searched rows.
updateZoneTTLINT3600The Zone TTL to replace into the searched rows.
updateZoneEnableDNSSECINT1Update DNSSEC Settings.
updateRecordHostSTRING@The Record Host to replace into the searched rows.
updateRecordTypeSTRINGNSThe Record Type to replace into the searched rows.
updateRecordValueSTRINGns1.dns.6connect.com.The Record Value to replace into the searched rows.
updateRecordDescriptionSTRINGDescriptionUpdate Record Descriptions.
updateRecordTTLSTRING3600The Record TTL to replace into the searched rows.
add
URL/api/v1/api.php?target=zone&action=add
DescriptionAdds a new DNS Zone.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Add Successful.","data":123}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
dataINTThe Id of the new Zone entry.
Required Parameters
NameTypeExampleDescription
zoneNameSTRING254.221.67.in-addr.arpaThe name for the new Zone.
Optional Parameters
NameTypeExampleDescription
zoneResourceIdSTRING123Resource Id for the new Zone.
zoneSerialINT2012033001Serial for the new Zone.
zoneRefreshINT36000Refresh for the new Zone.
zoneRetryINT800Retry for the new Zone.
zoneExpireINT6090000Expire for the new Zone.
zoneMinimumINT10Minimum for the new Zone.
zoneSOASTRING200SOA for the new Zone.
zoneTagsSTRINGclient,productionTags for the new Zone.
zoneTTLSTRING3600TTL for the new Zone.
zoneEnableDNSSECINT1Whether or not this new zone uses DNSSEC.
delete
URL/api/v1/api.php?target=zone&action=delete
DescriptionPerforms a search over the Zones and Records dataset and deletes all found Zones, plus all associated Records of those Zones.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Zones and Associated Records Deleted."}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
deleteZoneIdINT123The Zone Id to search for.
deleteZoneNameSTRINGfooThe Zone Name to search for.
deleteZoneResourceIdINT5The Resource Id to search for.
deleteZoneSerialINT2012033001The Zone Serial to search for.
deleteZoneRefreshINT36000The Zone Refresh to search for.
deleteZoneRetryINT800The Zone Retry to search for.
deleteZoneExpireINT6090000The Zone Expire to search for.
deleteZoneMinimumINT10The Zone Minimum to search for.
deleteZoneSOASTRING200The Zone SOA to search for.
deleteZoneTagsSTRINGclient,productionZone Tags to search for.
deleteZoneTTLINT3600The Zone TTL to search for.
deleteZoneEnableDNSSECINT1Search based on DNSSEC settings.
deleteRecordIdINT123The Record Id to search for.
deleteRecordHostSTRING@The Record Host to search for.
deleteRecordTypeSTRINGNSThe Record Type to search for.
deleteRecordValueSTRINGns1.dns.6connect.com.The Record Value to search for.
deleteRecordDescriptionSTRINGDescriptionSearch based on Record Description.
deleteRecordTTLSTRING3600The Record TTL to search for.
getRecordTypes
URL/api/v1/api.php?target=zone&action=getRecordTypes
DescriptionReturns a list of all Record Types allowed by the system.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Search Successful.","data":[{"recordType":"A"},{"recordType":"AAAA"},{"recordType":"MX"},{"recordType":"CNAME"},{"recordType":"PTRG"},{"recordType":"NS"},{"recordType":"TXT"},{"recordType":"DNSKEY"},{"recordType":"SRV"},{"recordType":"DS"},{"recordType":"TEST"}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
recordTypeSTRINGA Record Type
getFile
URL/api/v1/api.php?target=zone&action=getFile&zoneId=50
DescriptionReturns a fully written zone file. If one does not exist, returns false.
ReturnsA Zone File
Required Parameters
NameTypeExampleDescription
zoneIdINT50The Id of the zone to retrieve.
getDSFile
URL/api/v1/api.php?target=zone&action=getDSFile&zoneId=50
DescriptionReturns a fully written zone DS key file. If one does not exist, returns false.
ReturnsA Zone DS Key File
Required Parameters
NameTypeExampleDescription
zoneIdINT50The Id of the zone whose DS keys wer are to retrieve.
checkZone
URL/api/v1/api.php?target=zone&action=checkZone&zoneId=50
DescriptionRuns a zone file through Named checkzone
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"No errors found."}
ERROR:{"success":0,"message":"21: ignoring out-of-zone data (veggie.com) 22: ignoring out-of-zone data (veggie.com) dns_rdata_fromtext: 23: near '2001:db8:': bad IPv6 address dns_rdata_fromtext: 24: near '1.2.3.': bad dotted quad dns_rdata_fromtext: 25: near '2001::db8::\/32': bad IPv6 address "}
Required Parameters
NameTypeExampleDescription
zoneIdINT50The Id of the zone to check.

DNS Record Control

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

Examples:

SUCCESSFUL:{"success":1,"message":"Search Successful.","data":[{"recordId":"30894","recordZoneId":"229","recordHost":"@","recordType":"NS","recordValue":"ns1.domain.com.","recordDescription":"","recordTTL":""}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
recordIdINTThe ID of this Record Entry. It is always included with its parent Zone.
recordZoneIdINTThe ID of this Record's 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.
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
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.
NameTypeExampleDescription
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.
update
URL/api/v1/api.php?target=record&action=update
DescriptionFirst performs a search based on the submitted Zone and Record criteria, then performs an Update across those entries based on new values.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Update Successful."}
ERROR:{"success":0, "message":"error message"}
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.
NameTypeExampleDescription
searchZoneIdINT123The Zone ID to search for.
searchZoneNameSTRINGfooThe Zone Name to search for.
searchZoneCustIdINT5The Customer ID to search for.
searchZoneIpverSTRINGIPv6The IP Version to search for.
searchZoneMaskSTRING The Zone Mask to search for.
searchZoneSerialINT2012033001The Zone Serial to search for.
searchZoneRefreshINT36000The Zone Refresh to search for.
searchZoneRetryINT800The Zone Retry to search for.
searchZoneExpireINT6090000The Zone Expire to search for.
searchZoneMinimumINT10The Zone Minimum to search for.
searchZoneSOASTRING200The Zone SOA to search for.
searchZoneTagsSTRINGclient,productionZone Tags to search for.
searchZoneTTLINT3600The Zone TTL to search for.
searchZoneEnableDNSSECINT1Search based on DNSSEC settings.
searchRecordIdINT123The Record ID to search for.
searchRecordHostSTRING@The Record Host to search for.
searchRecordTypeSTRINGNSThe Record Type to search for.
searchRecordValueSTRINGns1.dns.6connect.com.The Record Value to search for.
searchRecordDescriptionSTRINGDescriptionSearch based on Record Description.
searchRecordTTLSTRING3600The Record TTL to search for.
NameTypeExampleDescription
updateZoneNameSTRINGfooThe Zone name to replace into the searched rows.
updateZoneCustIdINT5The Customer ID to replace into the searched rows.
updateZoneIpverSTRINGIPv6The IP Version to replace into the searched rows.
updateZoneMaskSTRING The Zone Mask to replace into the searched rows.
updateZoneSerialINT2012033001The Zone Serial to replace into the searched rows.
updateZoneRefreshINT36000The Zone Refresh to replace into the searched rows.
updateZoneRetryINT800The Zone Retry to replace into the searched rows..
updateZoneExpireINT6090000The Zone Expire to replace into the searched rows.
updateZoneMinimumINT10The Zone Minimum to replace into the searched rows.
updateZoneSOASTRING200The Zone SOA to replace into the searched rows.
updateZoneTagsSTRINGclient,productionZone Tags to replace into the searched rows.
updateZoneTTLINT3600The Zone TTL to replace into the searched rows.
updateZoneEnableDNSSECINT1Update DNSSEC Settings.
updateRecordHostSTRING@The Record Host to replace into the searched rows.
updateRecordTypeSTRINGNSThe Record Type to replace into the searched rows.
updateRecordValueSTRINGns1.dns.6connect.com.The Record Value to replace into the searched rows.
updateRecordDescriptionSTRINGDescriptionUpdate Record Descriptions.
updateRecordTTLSTRING3600The Record TTL to replace into the searched rows.
add
URL/api/v1/api.php?target=record&action=add
DescriptionAdds a new Record to a supplied Zone.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Add Successful.","data":123}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
dataINTThe ID of the new Record entry.
Required Parameters
NameTypeExampleDescription
newRecordZoneIdINT123The Zone ID of the new Record.
newRecordHostSTRING@New Host Name.
newRecordTypeSTRINGPTRNew Record Type.
newRecordValueSTRING123New Record Value.
Optional Parameters
NameTypeExampleDescription
newRecordDescriptionSTRINGDescription.Notes for the Record.
newRecordTTLINTfooRecord TTL.
delete
URL/api/v1/api.php?target=record&action=delete
DescriptionPerforms a search over the Zones and Records dataset and deletes all found Records, but leaves their parent Zones intact.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Deletion Successful."}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
deleteZoneIdINT123The Zone ID to search for.
deleteZoneNameSTRINGfooThe Zone Name to search for.
deleteZoneCustIdINT5The Customer ID to search for.
deleteZoneIpverSTRINGIPv6The IP Version to search for.
deleteZoneMaskSTRING The Zone Mask to search for.
deleteZoneSerialINT2012033001The Zone Serial to search for.
deleteZoneRefreshINT36000The Zone Refresh to search for.
deleteZoneRetryINT800The Zone Retry to search for.
deleteZoneExpireINT6090000The Zone Expire to search for.
deleteZoneMinimumINT10The Zone Minimum to search for.
deleteZoneSOASTRING200The Zone SOA to search for.
deleteZoneTagsSTRINGclient,productionZone Tags to search for.
deleteZoneTTLINT3600The Zone TTL to search for.
deleteZoneEnableDNSSECINT1Search based on DNSSEC settings.
deleteRecordIdINT123The Record ID to search for.
deleteRecordHostSTRING@The Record Host to search for.
deleteRecordTypeSTRINGNSThe Record Type to search for.
deleteRecordValueSTRINGns1.dns.6connect.com.The Record Value to search for.
deleteRecordDescriptionSTRINGDescriptionSearch based on Record Description.
deleteRecordTTLSTRING3600The Record TTL to search for.
switch
URL/api/v1/api.php?target=record&action=switch
DescriptionSwitches the order of two record entries.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Record Moved."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
moveWhichIdINT123The Record Id to be moved.
moveAfterIdINT@The Id of the Record the first Record is to be moved after.

Server-Zone Linkage

get
URL/api/v1/api.php?target=zoneLinkage&action=get
DescriptionSearches for Server-Zone Linkages. If no search parameters are supplied, all linkages are returned.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"2 rows retrieved.","data":[{"id":"285","zoneId":"64","serverId":"1","serverName":"173.164.182.169","serverType":"SCP","serverMasterType":"master","zoneName":"bind.com","resourceId":"483"},{"id":"287","zoneId":"371","serverId":"1","serverName":"173.164.182.169","serverType":"SCP","serverMasterType":"master","zoneName":"132.235.198.in-addr.arpa","resourceId":"577"}}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
idINTThe Linkage Id.
zoneIdINTThe ZoneId involved in this link.
serverIdINTThe ServerId involved in this link.
serverNameSTRINGThe server name
serverTypeSTRINGThe server transfer type
serverMasterTypeSTRINGWhether this server is a master or a slave.
zoneNameSTRINGThe zone name
resourceIdINTThe Resource Id the Zone is attached to.
Optional Parameters
NameTypeExampleDescription
idINTEGER15Fetches the linkage with the matching id.
serverIdINTEGER15Fetches all linkages with the matching serverId.
zoneIdINTEGER15Fetches all linkages with the matching zoneId.
add
URL/api/v1/api.php?target=zoneLinkage&action=add
DescriptionAdds a new link between a DNS Server and a Zone
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Link Added."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
serverIdINT16The DNS Server Id.
zoneIdINT105The Zone Id.
delete
URL/api/v1/api.php?target=zoneLinkage&action=delete
DescriptionDeletes a link between a DNS Server and a Zone
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Link Deleted."}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
idINTEGER15Fetches the linkage with the matching id.
serverIdINTEGER15Fetches all linkages with the matching serverId.
zoneIdINTEGER15Fetches all linkages with the matching zoneId.

Name Server Control

get
URL/api/v1/api.php?target=nameServer&action=get
DescriptionFetches a list of all stored Name Servers
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Fetch Sucessful.","data":[{"id":"1","nameserver":"ns1.dns.6connect.net","add_to_zones_default":"1","ordering":"10","uses":"34"},{"id":"10","nameserver":"ns2.dns.6connect.net","add_to_zones_default":"1","ordering":"11","uses":"46"},{"id":"9","nameserver":"ns4.dns.6connect.net","add_to_zones_default":"1","ordering":"14","uses":"12"},{"id":"3","nameserver":"ns3.dns.6connect.net","add_to_zones_default":"1","ordering":"15","uses":"46"}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
idINTServer ID
nameserverSTRINGServer Name
add_to_zones_defaultBOOLWhether or not this is a default server.
orderingINTDisplay order
usesINTHow many zones have been assigned to this NameServer
add
URL/api/v1/api.php?target=nameServer&action=add
DescriptionAdds a new DNS Server
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Add Successful."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
newServerSTRINGns.yourdomain.comName of the NameServer
delete
URL/api/v1/api.php?target=nameServer&action=delete
DescriptionDeletes a NameServer
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Server Deleted."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
idNUMERIC5ID of server to delete.
Example URL/api/v1/api.php?target=nameServer&action=delete&id=5
setDefault
URL/api/v1/api.php?target=nameServer&action=setDefault
DescriptionDefault NameServers have all new zones added to them as they are created. Multiple NameServers can be classified as Default.
Returns

Examples:

SUCCESSFUL:{"success":1, "message":"Success."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
idNUMERIC5ID of server to modify.
value1 or 011 = Default, 0 = Normal
Example URL/api/v1/api.php?target=nameServer&action=setDefault&id=3&value=1
orderUp
URL/api/v1/api.php?target=nameServer&action=orderUp
DescriptionSwaps the index order of the targeted NameServer with that of the one above it.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Reordering Successful."}
ERROR:{"success":0, "message":"error message"}
Example URL/api/v1/api.php?target=nameServer&action=orderUp&id=3
orderDown
URL/api/v1/api.php?target=nameServer&action=orderDown
DescriptionSwaps the index order of the targetted NameServer with that of the one below it.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Reordering Successful."}
ERROR:{"success":0, "message":"error message"}
Required Parameters
NameTypeExampleDescription
idNUMERIC5ID of server to activate.
Example URL/api/v1/api.php?target=nameServer&action=orderDown&id=5

 

 

  • No labels