Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 8.0.0

Table of Contents

DNS Server Control

Warning
ProVision's APIv1 system has been replaced by APIv2, and is now considered deprecated. 

Table of Contents


add

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

10","server":"

trace.6connect.com

mrbomasm-dns-4.onnet.net", "username":"

bremer

user", "password":"

asdfasdfasdf

vwvddp","

transferType

port":"

SCP

2600","

remoteDirectory": "\/tmp\/zones2","namedConfPath"

customer_name":null,"

active

transfer_type": "

1

SCP"

}

,

{

"

id

remote_directory":"

4

zones", "

server

named_conf_path":"

6connect.com

\/etc\/zones","

username

active":"

bremer

1","

password

post_command":null,"

1pw63bzij%7

pre_command":null,"

transferType

dyn_DNSSEC_contact":

"SCP"

null, "

remoteDirectory

powerdns_backend":"

\/tmp\/zones2

Bind","

namedConfPath

db_username":

"\/var\/named\/zones"

null,"

active

db_password":"

0

("

}

,

{

"

id

db_port":null,"

9

db_name":null, "server_type":"

dns.6connect.com

slave","

username

SOA":

"bremer"

null,"

password

master_id":

"3435233"

null,"

transferType

options": "

SCP", "remoteDirectory

{\"customer_name\":\"\

/zone

",\"

namedConfPath

server_type\":

null

\"slave\" ,\"

active

SOA\":

"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

\"\",\"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:

NameTypeNameTypeExampleDescription
idINTEGER15Server ID
The server id to fetch.
STRING
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
Server Name
usernameSTRINGLogin Name
passwordCRYPTLogin Password
portINTEGERPort the Server listens on
zoneCountINTEGERThe number of zones attached to this server.
optionsJSON

The options entry is a JSON-encoded string containing a variety of server-specific configuration options.

This string will vary widely by server type and configuration. The following are a selection of common settings.

transfer_typeSTRINGProtocol used for transfer of DNS zones and records. Valid settings include SCP, PowerDNS, Secure64, Secure64Signer
server_typeSTRINGWhether this server is a master or a slave server
SOASTRINGThe SOA entry to be used for zones on this server
remote_directorySTRINGThe directory where SCP will place the zone files.
named_conf_pathSTRINGThe path to the zone files used within the named.conf file.
pre_commandSTRINGThe command executed on the server before the zones are transferred
post_commandSTRINGThe command executed on the server after the transfer is complete
enable_viewsINTEGERWhether or not Views are enabled
viewsJSON

The views entry is a JSON-encoded string containing all the information about the Views attached to this server, if any exist.

idINTEGERThe View ID
server_idINTEGERThe ID of the server the View is attached to
nameSTRINGThe name of the View
descriptionSTRINGA description of the View
timestampINTEGERThe UNIX timestamp of when the view was created.
extrasJSONA JSON-encoded array of the extra attributes printed out in the view definition in the config file.


Required ParametersNone
Optional Parameters


NameTypeExampleDescription
idINTEGER15The server id to fetch.


Example URL/api/v1/api.php?target=dnsServer&action=get&id=15


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.comIP or FQDN of the DNS Server
passwordSTRINGpassword1Login password for Server
transferTypeSTRINGSCPProtocol used for transfer of DNS zones and records. Valid settings include SCP, PowerDNS, Secure64, Secure64Signer
serverTypeSTRINGMasterValues are 'Master' or 'Slave' only
displayNameSTRINGPrimary NSThe name displayed representing the DNS server, can be the same as server or different
SOASTRINGns1.6connect.com. hostmaster.6connect.com.Server of Authority record for DNS server


Optional Parameters

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

NameTypeExampleDescription
customerNameSTRING/tmp/zonesCustomer Name
remoteDirectorySTRING/tmp/zonesZone Directory on Server
portINTEGER22Port for ssh or scp access to server
namedConfPathSTRING/tmpThe path to the zone files used within the named.conf file.
preCommandSTRING/path/to/stuff/precommandCommand to execute before zone transfer
postCommandSTRING/path/to/stuff/postcommandCommand to execute after zone transfer
DNSSECContactSTRINGjoeuserFor use with Dyn dns service
usernameSTRINGbobuserLogin name for Server
activeINTEGER0Values 0 or 1 only, sets the server to inactive on 0 value
masterIdINTEGER53Master server ID. If a server is a slave, masterId points to its master.
powerDNSBackendSTRINGBind or MySQLpDNS server backend type
dbDatabaseNameSTRINGpdns_1DB name for pDNS servers with MySQL powerDNSBackend type
dbPortINTEGER3306Port for for pDNS servers with MySQL powerDNSBackend type
dbUsernameSTRINGsomeuserDB username for pDNS servers with MySQL powerDNSBackend type
dbPasswordSTRINGsomepassDB password for pDNS servers with MySQL powerDNSBackend type


Example URL

/api/v1/api.php?target=dnsServer&action=add&server=dns.yourdomain.com&transferType=Secure64&displayName=PrimaryNS&serverType=master&password=password1&SOA=ns1.6connect.com.+hostmaster.6connect.com.



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
idINTEGER5ID of server to delete


Optional ParametersNone
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
idINTEGER5ID of server
serverSTRINGdns.yourdomain.comIP or FQDN of the DNS Server
SOASTRINGns1.6connect.com. hostmaster.6connect.com.Server of Authority record for DNS server
transferTypeSTRINGSCPProtocol used for transfer of DNS zones and records. Valid settings include SCP, PowerDNS, Secure64, Secure64Signer


Optional Parameters

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

NameTypeExampleDescription
activeINTEGER0Values 0 or 1 only, sets the server to inactive on 0 value
customerNameSTRING/tmp/zonesCustomer Name
dbDatabaseNameSTRINGpdns_1DB name for pDNS servers with MySQL powerDNSBackend type
dbPasswordSTRINGsomepassDB password for pDNS servers with MySQL powerDNSBackend type
dbPortINTEGER3306Port for for pDNS servers with MySQL powerDNSBackend type
dbUsernameSTRINGsomeuserDB username for pDNS servers with MySQL powerDNSBackend type
displayNameSTRINGPrimary NSThe name displayed representing the DNS server, can be the same as server or different
DNSSECContactSTRINGjoeuserFor use with Dyn dns service
enable_viewsINTEGER1Whether or not Views are enabled. Valid values are '1' for enable or '0' for do not enable
masterIdINTEGER53Master server ID. If a server is a slave, masterId points to its master.
namedConfPathSTRING/tmpThe path to the zone files used within the named.conf file.
passwordSTRINGpassword1Login password for Server
portINTEGER22Port for ssh or scp access to server
powerDNSBackendSTRINGBind or MySQLpDNS server backend type
postCommandSTRING/path/to/stuff/postcommandCommand to execute after zone transfer
preCommandSTRING/path/to/stuff/precommandCommand to execute before zone transfer
remoteDirectorySTRING/tmp/zonesZone Directory on Server
serverTypeSTRINGMasterValues are 'Master' or 'Slave' only
usernameSTRINGbobuserLogin name for Server


Example URL

/api.php?target=dnsServer&action=update&id=74&transferType=SCP&server=dns.yourdomain.com&SOA=ns1.6connect.com.+hostmaster.6connect.com.


transferServer

URL/api/v1/api.php?target=dnsServer&action=transferServer
DescriptionPerforms a full zone push on a DNS Server, executing pre and post commands, transferring files, and restarting services.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Transfer Successful."}
ERROR:{"success":0, "message":"error message"}


Required Parameters


NameTypeExampleDescription
pushINTEGER1The ID of the server to push zones to


Optional ParametersNone
Example URL/api/v1/api.php?target=dnsServer&action=transferServer&push=1


transferSingle

URL/api/v1/api.php?target=dnsServer&action=transferSingle
Description

Transfers a single Zone file 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


NameTypeExampleDescription
zoneIdINTEGER35The ID of the zone to push


Optional ParametersNone
Example URL/api/v1/api.php?target=dnsServer&action=transferSingle&zoneId=35


DNS Zone Control

Examples:

get

URL/api/v1/api.php?target=zone&action=get
Description

Accepts 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":"932","zoneName":"185.160.209.in-addr.arpa","zoneResourceId":"81", "zoneSerial":"2013040302","zoneRefresh":"28800","zoneRetry":"7200","zoneExpire":"604800","zoneMinimum":"86400","zoneSOA":null, "zoneTTL":"28800","zoneAutoCheck":"1","zoneEnableDNSSEC":null,"recordId":"154110","recordZoneId":"932", "recordHost": "185.160.209.inaddr.arpa.","recordType":"NS","recordValue":"auth01.veroxity.net.","recordDescription":null,"recordTTL":"28800", "recordOrdering":"1", "recordErrors":null,"assetId":"0","userCanCreate":0,"userCanDelete":1,"userCanUpdate":1}]
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
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

"}


Data Detail:

NameTypeDescription
zoneIdINTEGERThe Id of the Zone entry. A single Zone entry might have multiple Records.
zoneNameSTRINGThe Zone name.
zoneResourceIdINTEGERThe resource Id associated with this Zone.
zoneSerialINTEGERZone Serial.
zoneRefreshINTEGERZone Refresh.
zoneRetryINTEGERZone Retry.
zoneExpireINTEGERZone Expire.
zoneMinimumINTEGERZone Minimum.
zoneSOASTRINGZone SOA.
zoneTTLSTRINGZone TTL.
zoneEnableDNSSECBOOLWhether or not DNSSEC is enabled for this Zone.
zoneAutoCheckBOOLWhether or not this zone is configured to be automatically validated on load/edit.
recordIdINTEGERThe 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.
recordOrderingINTEGERThe numerical order in which the record appears in the zone.
recordErrorsSTRINGA string containing any detected problems with this record
userCanCreateBOOLWhether or not the user has DNS CREATE permissions on this zone's resource
userCanUpdateBOOLWhether or not the user has DNS UPDATE permissions on this zone's resource
userCanDeleteBOOlWhether or not the user has DNS DELETE permissions on this zone's resource
unpagedRowsINTEGERIf pagination is used, this value will contain a total count of records had the pagination not been used.


Required ParametersNone
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.
selectCountINTEGER30When supplied only returns the first X entries


NameTypeExampleDescription
zoneIdINTEGER123The Zone Id to search for.
zoneNameSTRINGfooThe Zone Name to search for.
zoneResourceIdINTEGER5The Resource Id to search for.
zoneSerialINTEGER2012033001The Zone Serial to search for.
zoneRefreshINTEGER36000The Zone Refresh to search for.
zoneRetryINTEGER800The Zone Retry to search for.
zoneExpireINTEGER6090000The Zone Expire to search for.
zoneMinimumINTEGER10The Zone Minimum to search for.
zoneSOASTRING200The Zone SOA to search for.
zoneTTLINTEGER3600The Zone TTL to search for.
zoneEnableDNSSECINTEGER1Search based on DNSSEC settings.
recordIdINTEGER123The Record Id to search for.
recordZoneIdINTEGER123The 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.


Example URL/api/v1/api.php?target=zone&action=get&zoneId=123


get
URL/api/v1/api.php?target=zone&action=getsearch
DescriptionAccepts search criteria to retrieve a list of all matching DNS Zones and 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":"64","zoneName":"bind.com","zoneResourceId":"483","zoneSerial":"2012121805","zoneRefresh":"0","zoneRetry":"0","zoneExpire":"0","zoneMinimum":"0","zoneSOA"zoneId":"123","zoneTagszoneName":"Aaron, personalfoobs.net","zoneTTLzoneResourceId":"3600483","zoneEnableDNSSECzoneIpver":null,"1zoneMask":null,"recordIdzoneSerial":"164502012121803","recordHostzoneRefresh":null,"ns1zoneRetry":null,"recordTypezoneExpire":null,"AzoneMinimum":null,"recordValuezoneSOA":"1.2.3.5"null,"recordDescriptionzoneTTL":"3600","recordTTLzoneEnableDNSSEC":"1","recordOrderingzoneLocalSigning":"41","assetId":"0","unpagedRowsrecordCount":"116721","recordHostAssetunpagedRows":0,"recordValueAsset215":"447"}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

The numerical Id of the Asset best associated with this recordValue. Zero if such asset does not exist.
NameTypeDescription
zoneIdINTINTEGERThe Id of the Zone entry. A single Zone entry might have multiple Records.
zoneNameSTRINGThe Zone name.
zoneResourceIdINTINTEGERThe resource Id associated with this Zone.
zoneSerialINTINTEGERZone Serial.
zoneRefreshINTINTEGERZone Refresh.
zoneRetryINTINTEGERZone Retry.
zoneExpireINTINTEGERZone Expire.
zoneMinimumINTZone Minimum.zoneSOASTRINGINTEGERZone SOAMinimum.
zoneTagszoneSOASTRINGAll the tags associated with this Zone SOA.
zoneTTLSTRINGZone TTL.
zoneEnableDNSSECBOOLWhether or not DNSSEC is enabled for this Zone.recordId
zoneAutoCheckINTThe 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.
recordValueAssetINT
BOOLWhether or not this zone is configured to be automatically validated on load/edit.
recordCountINTEGERHow many records are associated with this zone.
userCanCreateBOOLWhether or not the user has DNS CREATE permissions on this zone's resource
userCanUpdateBOOLWhether or not the user has DNS UPDATE permissions on this zone's resource
userCanDeleteBOOlWhether or not the user has DNS DELETE permissions on this zone's resource
unpagedRowsINTEGERIf pagination is used, this value will contain a total count of records had the pagination not been used.


Required ParametersNone
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 paramenters using OR. If 0 or omitted, uses AND.
selectCountINTINTEGER30When supplied only returns the first X entries
selectOffsetINTINTEGER10When 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 forand DESC.


NameTypeExampleDescription
zoneIdINTINTEGER123The Zone Id to search for.
zoneNameSTRINGfooThe Zone Name to search for.
zoneResourceIdINTINTEGER5The Resource Id to search for.
zoneSerialINTINTEGER2012033001The Zone Serial to search for.
zoneRefreshINTINTEGER36000The Zone Refresh to search for.
zoneRetryINTINTEGER800The Zone Retry to search for.
zoneExpireINTINTEGER6090000The Zone Expire to search for.
zoneMinimumINTINTEGER10The Zone Minimum to search for.
zoneSOASTRING200The Zone SOA to search for.
zoneTagsSTRINGclient,productionZone Tags to search for.
zoneTTLINTINTEGER3600The Zone TTL to search for.
zoneEnableDNSSECINTINTEGER1Search based on DNSSEC settings.
recordIdINTINTEGER123The Record Id to search for.
recordZoneIdINTINTEGER123The 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.


Example URL/api/v1/api.php?target=zone&action=search&zoneId=123


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."}
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"}


Required ParametersNone
Optional Parameters Data Detail:


NameTypeExampleDescription
zoneIdlikeFlagINTThe 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
BOOL1When 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
searchZoneIdINTEGER123The Zone Id to search for.
searchZoneNameSTRINGfooThe Zone Name to search for.
searchZoneResourceIdINTEGER5The Resource Id to search for.
searchZoneSerialINTEGER2012033001The Zone Serial to search for.
searchZoneRefreshINTEGER36000The Zone Refresh to search for.
searchZoneRetryINTEGER800The Zone Retry to search for.
searchZoneExpireINTEGER6090000The Zone Expire to search for.
searchZoneMinimumINTEGER10The Zone Minimum to search for.
searchZoneSOASTRING200The Zone SOA to search for.
searchZoneTTLINTEGER3600The Zone TTL to search for.
searchZoneEnableDNSSECINTEGER1Search based on DNSSEC settings.
searchRecordIdINTEGER123The 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.
updateZoneSerialINTEGER2012033001The Zone Serial to replace into the searched rows.
updateZoneRefreshINTEGER36000The Zone Refresh to replace into the searched rows.
updateZoneRetryINTEGER800The Zone Retry to replace into the searched rows..
updateZoneExpireINTEGER6090000The Zone Expire to replace into the searched rows.
updateZoneMinimumINTEGER10The Zone Minimum to replace into the searched rows.
updateZoneSOA
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 forreplace into the searched rows.
zoneTagsupdateZoneTTLSTRINGclient,productionZone Tags to search for.INTEGERzoneTTLINT3600The Zone TTL to search forreplace into the searched rows.
zoneEnableDNSSECupdateZoneEnableDNSSECINTINTEGER1Search based on Update DNSSEC settingsSettings.
recordIdINT123The Record Id to search for.
recordZoneIdINT123The parent Zone to search for.
updateRecordHostrecordHostSTRING@The Record Host to search forreplace into the searched rows.
recordTypeupdateRecordTypeSTRINGNSThe Record Type to search forto replace into the searched rows.
recordValueupdateRecordValueSTRINGns1.dns.6connect.com.The Record Value to search forreplace into the searched rows.
recordDescriptionupdateRecordDescriptionSTRINGDescriptionSearch based on Update Record DescriptionDescriptions.
recordTTLupdateRecordTTLSTRING3600The Record TTL to search for.replace into the searched rows.
updateZoneAutoCheckBOOL1Whether or not this zone is configured to be automatically validated on load/edit.


NameTypeExampleDescription
recordZoneIdINTEGER123The parent zone ID


Example URL/api/v1/api.php?target=zone&action=update&searchZoneId=123&updateZoneExpire=6090000


When 1, searches over the provided paramenters using OR. If 0 or omitted, uses AND.

add

update

URL/api/v1/api.php?target=zone&action=updateadd
DescriptionFirst performs a search based on the submitted Zone and Record criteria, then performs an Update across those entries based on new valuesAdds a new DNS Zone.
Returns

Examples:

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


Data Detail:

NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1
NameTypeExampleDescription
searchZoneIddataINT123INTEGERThe Zone Id to search forId of the new Zone entry.searchZoneName


Required Parameters


STRING
NamefooThe 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.
addURL/api/v1/api.php?target=zone&action=addDescriptionAdds a new DNS Zone.
TypeExampleDescription
zoneNameSTRING254.221.67.in-addr.arpaThe name for the new Zone.


Optional Parameters


NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
zoneIpverSTRINGIPv6The IP Version.
zoneLocalSigning

BOOL

1

Whether or not this zone should be signed by the ProVision server when DNSSEC is enabled. If set to false, ProVision will deliver the zone unsigned to the DNS server and the signing / updating process should be triggered by the post-push command

zoneSerialINTEGER2012033001Serial for the new Zone.
zoneRefreshINTEGER36000Refresh for the new Zone.
zoneRetryINTEGER800Retry for the new Zone.
zoneExpireINTEGER6090000Expire for the new Zone.
zoneMinimumINTEGER10Minimum for the new Zone.
zoneSOASTRING200SOA for the new Zone.
zoneTTLSTRING3600TTL for the new Zone.
zoneEnableDNSSECINTEGER1Whether or not this new zone uses DNSSEC.


Example URL/api/v1/api.php?target=zone&action=add&zoneName=254.221.67.in-addr.arpa&zoneSerial=2012033001


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"}


Required ParametersNo specific parameter is required, however, one or more optional parameters must be used for a successful return
Optional Parameters


NameTypeExampleDescription
deleteZoneIdINTEGER123The Zone Id to search for.
deleteZoneNameSTRINGfooThe Zone Name to search for.
deleteZoneResourceIdINTEGER5The Resource Id to search for.
deleteZoneSerialINTEGER2012033001The Zone Serial to search for.
deleteZoneRefreshINTEGER36000The Zone Refresh to search for.
deleteZoneRetryINTEGER800The Zone Retry to search for.
deleteZoneExpireINTEGER6090000The Zone Expire to search for.
deleteZoneMinimumINTEGER10The Zone Minimum to search for.
deleteZoneSOASTRING200The Zone SOA to search for.
deleteZoneTTLINTEGER3600The Zone TTL to search for.
deleteZoneEnableDNSSECINTEGER1Search based on DNSSEC settings.
deleteRecordIdINTEGER123The 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.
deleteRecordZoneIdINTEGER123The parent zone ID


Example URL/api/v1/api.php?target=zone&action=delete&deleteZoneId=123


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


Required ParametersNone
Optional ParametersNone
Example URL/api/v1/api.php?target=zone&action=getRecordTypes


Examples:

getFile

Returns
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=getFile&zoneId=delete50DescriptionPerforms 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"}
Returns a fully written zone file. If one does not exist, returns false.ReturnsA Zone FileRequired 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.
zoneIdINTEGER50The Id of the zone to retrieve.
formatENUMERATED'html' or "If html, the zone file will be formatted for display via a web browser. If blank or omitted, the zone file will be formatted for display in a file system.
unsignedBOOL1For a DNSSEC-enabled zone, determines whether or not the system retrieves the signed or unsigned zone file. Ignored for non-DNSSEC zones.


Optional ParametersNoneExample URL/api/v1/api.php?target=zone&action=getFile&zoneId=50&zoneId=50&format=html&unsigned=1