API
delegate_zones
This function will delegate a list of zones into a specific group.
data.
- zone_list
-
array. This string is a list of zone ID's. Each zone in the list will be delegated to the specified group. REQUIRED.
- nt_group_id
-
string. The group to which the zones should be delegated. REQUIRED.
- perm_write
-
flag. The delegate is allowed to modify this object.
- perm_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- perm_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
- zone_perm_add_records
-
flag. The delegate is allowed to add records to this zone.
- zone_perm_delete_records
-
flag. The delegate is allowed to delete records in this zone.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delegate_zone_records
This function will delegate a list of Zone Records into a specific Group.
data.
- zonerecord_list
-
array. This is a list of Zone Record IDs. Each Zone in the list will be delegated to the specified Group with the supplied permissions. REQUIRED.
- nt_group_id
-
string. The Group to which the Zones should be delegated. REQUIRED.
- perm_write
-
flag. The delegate is allowed to modify this object.
- perm_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- perm_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_group
This function will delete a group.
data.
- nt_group_id
-
string. The ID of the group to delete.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_nameserver
This function will delete a nameserver.
data.
- nt_nameserver_id
-
string. This is the ID number of the nameserver to be deleted.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_users
This function will delete a list of users.
data.
- user_list
-
string. This string is a list of user id's separated by commas. Each user in the list will be deleted.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_zone_record
This function will delete a zone record.
data.
- nt_zone_record_id
-
string. The record ID of the zone record to delete.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_zone_record_delegation
This function will remove the delegation of a Zone Record to a Group.
data.
- nt_zone_record_id
-
string. The ID of the Zone Record. REQUIRED
- nt_group_id
-
string. The ID of the Group. REQUIRED
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_zone_delegation
This function will remove the delegation of a Zone to a Group.
data.
- nt_zone_id
-
string. The ID of the Zone. REQUIRED
- nt_group_id
-
string. The ID of the Group. REQUIRED
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
delete_zones
This function will delete a list of zones.
data.
- zone_list
-
string. This string is a list of zone id's separated by commas. Each zone in the list will be deleted.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
edit_group
This function allows you modify a Group.
The permissions settings for the group may be specified explicitly using the group_..., user_..., zone_..., zonerecord_..., nameserver_..., and self_... parameters.
Note: No specific permission setting can be granted to or removed from a Group unless the currently logged-in User has that specific permission.
The usable_nameservers parameter allows you to specify a list of Nameservers which Users in the new Group will be allowed to publish zones to. The list of usable Nameservers cannot be overridden on a user to user basis.
data.
- nt_group_id
-
string. ID number of the Group. REQUIRED.
- name
-
string. New name of the group.
- group_write
-
flag. Users may modify Group objects.
- group_create
-
flag. Users may create new Group objects.
- group_delete
-
flag. Users may delete Group objects.
- zone_write
-
flag. Users may modify Zone objects.
- zone_create
-
flag. Users may create Zone objects.
- zone_delegate
-
flag. Users may delegate Zone objects.
- zone_delete
-
flag. Users may delete Zone objects.
- zonerecord_write
-
flag. Users may modify Zone Record objects.
- zonerecord_create
-
flag. Users may create Zone Record objects.
- zonerecord_delegate
-
flag. Users may delegate Zone Record objects.
- zonerecord_delete
-
flag. Users may delete Zone Record objects.
- user_write
-
flag. Users may modify User objects.
- user_create
-
flag. Users may create User objects.
- user_delete
-
flag. Users may delete User objects.
- nameserver_write
-
flag. Users may modify Nameserver objects.
- nameserver_create
-
flag. Users may create Nameserver objects.
- nameserver_delete
-
flag. Users may delete Nameserver objects.
- self_write
-
flag. Users may modify themselves.
- usable_nameservers
-
array. A list of up to 10 IDs of Nameserver objects. Users may publish zones to any of these Nameservers.
return. If successful, the result struct will contain an error_code value of '200'.
- nt_group_id
-
string. The ID of the new or updated group.
edit_nameserver
This function allows you to create or update a nameserver for a specific group.
data.
- nt_nameserver_id
-
string. ID number of the nameserver to update. If you are creating a new nameserver, this element should be absent or undefined.
- nt_group_id
-
string. ID number of the group the nameserver belongs to. REQUIRED.
- datadir
-
string.The path to the data directory on the nameserver.
- description
-
string.The description of the nameserver.
- output_format
-
string.The output format for the data. Either 'djb' or 'bind'.
- service_type
-
string.The type of the name server. Either 'hosted' or 'data-only'.
- logdir
-
string.The path to the log directory on the nameserver.
- name
-
string.The hostname of the nameserver.
- address
-
string.The dotted-decimal IP address of the nameserver.
- ttl
-
string.The TTL value for this nameserver.
return. If successful, the returned struct will contain only one element:
- nt_nameserver_id
-
string. The nameserver's ID number.
edit_user
This function allows you to modify the settings for a User object.
The permissions settings may be specified explicitly using the group_..., user_..., zone_..., zonerecord_..., nameserver_..., and self_... parameters, or the User can inherit the permissions settings for the parent Group if none of those parameters are included. You can explicitly cause the permissions to be inherited (or not) by including the parameter inherit_group_permissions.
Note: No specific permission setting can be granted or removed from a User unless the currently logged-in User has that specific permission.
data.
- nt_user_id
-
string. ID number of the user to update.
- first_name
-
string. The user's first name.
-
string. The user's email address.
- last_name
-
string. The user's last name.
- username
-
string. The user's login name.
- password
-
string. The user's new password.
- password2
-
string. The user's new password again. Must match password.
- old_password
-
string. The user's previous password. (REQUIRED if password is being changed.)
- group_write
-
flag. Users may modify Group objects.
- group_create
-
flag. Users may create new Group objects.
- group_delete
-
flag. Users may delete Group objects.
- zone_write
-
flag. Users may modify Zone objects.
- zone_create
-
flag. Users may create Zone objects.
- zone_delegate
-
flag. Users may delegate Zone objects.
- zone_delete
-
flag. Users may delete Zone objects.
- zonerecord_write
-
flag. Users may modify Zone Record objects.
- zonerecord_create
-
flag. Users may create Zone Record objects.
- zonerecord_delegate
-
flag. Users may delegate Zone Record objects.
- zonerecord_delete
-
flag. Users may delete Zone Record objects.
- user_write
-
flag. Users may modify User objects.
- user_create
-
flag. Users may create User objects.
- user_delete
-
flag. Users may delete User objects.
- nameserver_write
-
flag. Users may modify Nameserver objects.
- nameserver_create
-
flag. Users may create Nameserver objects.
- nameserver_delete
-
flag. Users may delete Nameserver objects.
- self_write
-
flag. Users may modify themselves.
- inherit_group_permissions
-
flag. If TRUE, the User object will inherit the permissions for the group it belongs to.
return. If successful, the returned struct will contain only one element:
- nt_user_id
-
string. The user's id number.
edit_zone
This function allows you to create or update a zone within a specific group.
data.
- nt_zone_id
-
string. ID number of the zone to update. If you are creating a new zone, this element should be included but be undefined or the empty string.
- nt_group_id
-
string. ID number of the group the user belongs to. REQUIRED.
- zone
-
string. The name of the zone. This parameter is REQUIRED only if you are creating a new zone.
- ttl
-
string. An integer string for the TTL value of the zone record.
- serial
-
string. The serial value for BIND name servers.
- nameservers
-
string. A comma separated list of nameserver IDs. These IDs will be the nameservers this zone is replicated to. REQUIRED if a new zone is being created.
- mailaddr
-
string. The email address for the hostmaster of the zone. This email address should not contain an '@' character. Instead use '.'.
- description
-
string. A description of the zone.
- refresh
-
int. The value for the REFRESH setting in seconds.
- retry
-
int. The value for the RETRY setting in seconds.
- expire
-
int. The value for the EXPIRE setting in seconds.
- minimum
-
int. The value for the MINIMUM setting in seconds.
return. If successful, the returned struct will contain only one element:
- nt_zone_id
-
string. The new zone's id number.
edit_zone_delegation
This function will modify the permissions for a delegation of a zone to a specific group.
data.
- nt_zone_id
-
array. The Zone that is delegated. REQUIRED.
- nt_group_id
-
string. The delegate of the Zone. REQUIRED.
- perm_write
-
flag. The delegate is allowed to modify this object.
- perm_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- perm_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
- zone_perm_add_records
-
flag. The delegate is allowed to add records to this zone.
- zone_perm_delete_records
-
flag. The delegate is allowed to delete records in this zone.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
edit_zone_record
This function allows you to create or update a zone record within a specific zone.
data.
- nt_zone_record_id
-
string.The Zone record ID number of the zone record being updated. If you are creating a new zone record, this entry is to be left blank. REQUIRED.
- nt_zone_id
-
string.ID of the zone which the record belongs to. REQUIRED.
- name
-
string.The name value of the zone record.
- ttl
-
string.The TTL value of the zone record.
- description
-
string.The description of the zone record.
- type
-
string.The type of the zone record. One of 'A', 'CNAME', 'NS', 'MX', and 'PTR'.
- address
-
string.The dotted-decimal IP address or domain name of the record.
- weight
-
string.The weight of the record (type 'MX' records only).
return. If successful, the returned struct will contain only one element:
- nt_zone_record_id
-
string. The new zone record's id number.
edit_zone_record_delegation
This function will modify the permissions for a delegation of a Zone Record to a specific Group.
data.
- nt_zone_record_id
-
array. The Zone Record that is delegated. REQUIRED
- nt_group_id
-
string. The delegate of the Zone Record. REQUIRED
- perm_write
-
flag. The delegate is allowed to modify this object.
- perm_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- perm_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
return. No parameters other than error_code, and error_msg are returned. See the API Notes.
get_delegated_zone_records
Gets the list of Zone Records that have been delegated to the specified Group.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
return.
- ZONERECORD
-
array. A list of structs representing the delegated Zone Records. (see get_zone_record for information about the fields inside a Zone object). In addition, the following fields representing the delegate Group's permissions for acting on the object:
- delegate_write
-
flag. The delegate is allowed to modify this object.
- delegate_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- delegate_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
get_delegated_zones
Gets the list of Zones that have been delegated to the specified Group.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
return.
- ZONE
-
array. A list of structs representing the delegated zones. (see get_zone for information about the fields inside a Zone object). In addition, the following fields representing the delegate Group's permissions for acting on the object:
- delegate_write
-
flag. The delegate is allowed to modify this object.
- delegate_delete
-
flag. The delegate is allowed to remove the delegation of this object.
- delegate_delegate
-
flag. The delegate is allowed to further delegate the object to another sub-group.
- delegate_add_records
-
flag. The delegate is allowed to add records to this zone.
- delegate_delete_records
-
flag. The delegate is allowed to delete records in this zone.
get_global_application_log
This function returns a list of log entries for actions performed in a specific group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'timestamp','group_name','user','action', 'object', 'title', or 'description'. The quick search fields are 'user', 'action', 'object', 'title', and 'description'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the user's group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- log
-
array. An array of struct elements, each one containing information about a specific log entry. The elements of each struct are as follows:
-
description. string. Textual description of the event.
-
title. string. The name of the object that was affected.
-
nt_user_id. string. The ID of the user who invoked the action.
-
object. string. The type name of the object that was affected.
-
object_id. string. The ID of the object that was affected.
-
nt_user_global_log_id. string. The ID of the global log entry.
-
log_entry_id. string. The ID of the log entry.
-
action. string. The type of the action.
-
timestamp. string. The date and time that the event occurred in seconds since the Epoch (00:00:00 UTC, January 1, 1970) in seconds. (see the unix function time(), or the perl function localtime).
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group
This function returns information for a specific group.
data.
- nt_group_id
-
string. REQUIRED. The group ID.
- summary_data
-
int. Is summary data requested? 0 means false
return.
- nt_group_id
-
string. The requested group's id.
- deleted
-
string. Has the group been deleted? '0' means false.
- parent_group_id
-
string. The requested group's parent's id.
- name
-
string. The requested group's name.
- has_children
-
string. The number of children of the requested group. (Only present if 'summary_data' is not 0.)
- group_write
-
flag. Users may modify Group objects.
- group_create
-
flag. Users may create new Group objects.
- group_delete
-
flag. Users may delete Group objects.
- zone_write
-
flag. Users may modify Zone objects.
- zone_create
-
flag. Users may create Zone objects.
- zone_delegate
-
flag. Users may delegate Zone objects.
- zone_delete
-
flag. Users may delete Zone objects.
- zonerecord_write
-
flag. Users may modify Zone Record objects.
- zonerecord_create
-
flag. Users may create Zone Record objects.
- zonerecord_delegate
-
flag. Users may delegate Zone Record objects.
- zonerecord_delete
-
flag. Users may delete Zone Record objects.
- user_write
-
flag. Users may modify User objects.
- user_create
-
flag. Users may create User objects.
- user_delete
-
flag. Users may delete User objects.
- nameserver_write
-
flag. Users may modify Nameserver objects.
- nameserver_create
-
flag. Users may create Nameserver objects.
- nameserver_delete
-
flag. Users may delete Nameserver objects.
- self_write
-
flag. Users may modify themselves.
- usable_ns0
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns1
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns2
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns3
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns4
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns5
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns6
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns7
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns8
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns9
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
get_group_branch
This function returns a list of all parent groups of a given group. I.E. the list of groups travelling from a subgroup up the tree to the user's group..
data.
- nt_group_id
-
string. REQUIRED. The ID of the subgroup to return branch information about.
return.
- groups
-
array. This is a list of struct elements, each containing information about a subgroup. The struct has the following fields:
-
nt_group_id. string. The ID of the subgroup.
-
parent_group_id. string. The ID of this subgroup's parent.
-
name. string. The name of the subgroup.
-
deleted. string. Has the subgroup been deleted? 0 means no.
-
get_group_groups
This function returns a list of all immediate subgroups of a specific group.
data.
- nt_group_id
-
string. REQUIRED. The ID of the group to return information about.
return.
- groups
-
array. This is a list of struct elements, each containing information about a subgroup. The struct has the following fields:
-
nt_group_id. string. The ID of the subgroup.
-
parent_group_id. string. The ID of the subgroup's parent (the same as the nt_group_id parameter in the data struct.
-
name. string. The name of the subgroup.
-
deleted. string. Has the subgroup been deleted? 0 means no.
-
get_group_subgroups
This function returns information about the subgroups of a particular group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'group'. The quick-search field is 'group'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the requested group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- groups
-
array. An array of struct elements, each one containing information about a specfic subgroup. The elements of each struct are as follows:
-
name. string. The name of the subgroup.
-
nt_group_id. string. The id of the subgroup.
-
deleted. string. Has this subgroup been deleted? 1 means yes.
-
parent_group_id. string. The ID of this subgroup's parent.
-
sub_groups. string. Number of subgroups within this subgroup. Undefined means 0.
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group_users
This function returns information about the users in a particular group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'group_name','username','first_name','last_name',or 'email'. The quick-search field is 'username'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the requested group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- list
-
array. An array of struct elements, each one containing information about a specfic user. The elements of each struct are as follows:
-
first_name. string. The user's first name.
-
group_name. string. The name of the group the user belongs to.
-
nt_group_id. string. The id of the user's group.
-
username. string. The user's login name.
-
nt_user_id. string. The user's id number.
-
last_name. string. The user's last name.
-
email. string. The user's email address.
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group_nameservers
This function returns information about the namservers in a particular group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'name','description','address','service_type', or 'output_format'. The quick search fields are 'name'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- list
-
array. An array of struct elements, each one containing information about a specfic user. The elements of each struct are as follows:
-
datadir. string.The path to the data directory on the nameserver.
-
description. string.The description of the nameserver.
-
output_format. string.The output format for the data. Either 'djb' or 'bind'.
-
service_type. string.The type of the name server. Either 'hosted' or 'data-only'.
-
logdir. string.The path to the log directory on the nameserver.
-
name. string.The hostname of the nameserver.
-
nt_group_id. string.The ID of the group of this nameserver.
-
deleted. string.Has this nameserver been deleted? '0' means false.
-
address. string.The dotted-decimal IP address of the nameserver.
-
ttl. string.The TTL value for this nameserver.
-
nt_nameserver_id. string.The ID of this nameserver.
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group_permissions
Gets the permissions settings for the specified Group.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
return.
- group_write
-
flag. Users may modify Group objects.
- group_create
-
flag. Users may create new Group objects.
- group_delete
-
flag. Users may delete Group objects.
- zone_write
-
flag. Users may modify Zone objects.
- zone_create
-
flag. Users may create Zone objects.
- zone_delegate
-
flag. Users may delegate Zone objects.
- zone_delete
-
flag. Users may delete Zone objects.
- zonerecord_write
-
flag. Users may modify Zone Record objects.
- zonerecord_create
-
flag. Users may create Zone Record objects.
- zonerecord_delegate
-
flag. Users may delegate Zone Record objects.
- zonerecord_delete
-
flag. Users may delete Zone Record objects.
- user_write
-
flag. Users may modify User objects.
- user_create
-
flag. Users may create User objects.
- user_delete
-
flag. Users may delete User objects.
- nameserver_write
-
flag. Users may modify Nameserver objects.
- nameserver_create
-
flag. Users may create Nameserver objects.
- nameserver_delete
-
flag. Users may delete Nameserver objects.
- self_write
-
flag. Users may modify themselves.
- usable_ns0
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns1
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns2
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns3
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns4
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns5
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns6
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns7
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns8
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns9
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
get_group_zones
This function returns information about the zones in a particular group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'zone', 'group_name', or 'description'. The quick-search field is 'zone'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the requested group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- zones
-
array. An array of struct elements, each one containing information about a specfic zone. The elements of each struct are as follows:
-
nt_group_id. string. The id of the zone's group.
-
group_name. string. The name of the group.
-
nt_zone_id. string. The zone's id number.
-
description. string. Textual description of the zone.
-
zone. string. The zone name.
-
queries_successful. string. The number of successful queries.
-
records. string. The number of records in this zone.
-
queries_norecord. string. The number of queries which resulted in no records, or undefined.
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group_zones_log
This function returns a list of log entries for actions performed by on zones in a specified group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'timestamp','group_name','user','action', 'zone', 'ttl', or 'description'. The quick-search field is 'zone'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
- include_subgroups
-
int. 0 means false. Include results from all subgroups as well.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- log
-
array. An array of struct elements, each one containing information about a specific log entry. The elements of each struct are as follows:
-
description. string. Textual description of the event.
-
zone. string. The name of the zone that was affected.
-
nt_user_id. string. The ID of the user who invoked the action.
-
mailaddr. string. The value of the zone's MX entry.
-
refresh. string. The value of the zone's "refresh" entry.
-
user. string. Name of the user who invoked the action. Formatted as "firstname lastname (username)".
-
retry. string. The value of the zone's "retry" entry.
-
group_name. string. The name of the zone's group.
-
ttl. string. The value of the zone's "ttl" entry.
-
expire. string. The value of the zone's "expire" entry.
-
nt_zone_id. string. The ID of the zone that was affected.
-
nt_zone_log_id. string. The ID of the zone log entry.
-
log_entry_id. string. The ID of the log entry.
-
action. string. The type of the action.
-
timestamp. string. The date and time that the event occurred in seconds since the Epoch (00:00:00 UTC, January 1, 1970) in seconds. (see the unix function time(), or the perl function localtime).
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_group_zone_query_log
This function returns a list of log entries for queries made to all zones in a specific group. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'timestamp','zone','query','qtype', 'flag', 'ip', or 'port'. The quick-search field is 'query'.
data. Named hash elements in the data hash:
- nt_group_id
-
string. ID number of the group. REQUIRED.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive
-
string. The search parameter number N should be added to the search with the given boolean term (for N>1). May be 'And' or 'Or'.
- quick_search
-
int. 0 means false. Indicates that the search is to search all of the quick-search fields listed in the function description above to see if they contain search_value.
- search_value
-
string. The search string for the quick-search.
return.
- search_result
-
array. An array of struct elements, each one containing information about a specific log entry. The elements of each struct are as follows:
-
nt_nameserver_qlog_id. string. ID of the nameserver query log entry.
-
nt_nameserver_id. string. ID of the nameserver queried.
-
nt_zone_id. string. The ID of the zone queried.
-
nt_zone_record_id. string. The ID of the zone record that was returned as the result of the query.
-
object_id. string. The ID of the object that was affected.
-
nt_user_global_log_id. string. The ID of the global log entry.
-
port. string. The TCP port the query originated from on the client host.
-
ip. string. The dotted decimal IP address of the source of the query.
-
qid. string. The ID of the query.
-
flag. string. The query flag. '-' means no response was returned, '+' means the response was returned.
-
query. string. The name queried.
-
qtype. string. The type of the query. One of 'a','ns','cname','soa','ptr','hinfo','mx','txt','rp','sig','key','aaaa','axfr','any','unknown'.
-
timestamp. string. The date and time that the event occurred in seconds since the Epoch (00:00:00 UTC, January 1, 1970) in seconds. (see the unix function time(), or the perl function localtime).
-
- page
-
string. The current page number.
- total_pages
-
string. The total number of pages.
- end
-
string. The position in the full list of matches of the last result returned in list.
- total
-
string. Total number of results in the list element.
- start
-
string. The position in the full list of matches of the first result returned in list.
- limit
-
string. The maximum number of results returned.
get_nameserver
This function returns information for a specific nameserver.
data.
- nt_nameserver_id
-
string. ID number of the nameserver. REQUIRED.
return. The data struct returned contains the contents of the database entry for the username supplied:
- datadir
-
string.The path to the data directory on the nameserver.
- description
-
string.The description of the nameserver.
- output_format
-
string.The output format for the data. Either 'djb' or 'bind'.
- service_type
-
string.The type of the name server. Either 'hosted' or 'data-only'.
- logdir
-
string.The path to the log directory on the nameserver.
- name
-
string.The hostname of the nameserver.
- nt_group_id
-
string.The ID of the group of this nameserver.
- deleted
-
string.Has this nameserver been deleted? '0' means false.
- address
-
string.The dotted-decimal IP address of the nameserver.
- ttl
-
string.The TTL value for this nameserver.
- nt_nameserver_id
-
string.The ID of this nameserver.
get_nameserver_list
This function will return a list of nameserver data given a list of nameserver IDs.
data.
- nameserver_list
-
string. This string is a list of nameserver ID's separated by commas.
return. The return data struct has a single element.
- list
-
array. An array of struct elements, each one containing information about a specfic user. The elements of each struct are as follows:
-
datadir. string.The path to the data directory on the nameserver.
-
description. string.The description of the nameserver.
-
output_format. string.The output format for the data. Either 'djb' or 'bind'.
-
service_type. string.The type of the name server. Either 'hosted' or 'data-only'.
-
logdir. string.The path to the log directory on the nameserver.
-
name. string.The hostname of the nameserver.
-
nt_group_id. string.The ID of the group of this nameserver.
-
deleted. string.Has this nameserver been deleted? '0' means false.
-
address. string.The dotted-decimal IP address of the nameserver.
-
ttl. string.The TTL value for this nameserver.
-
nt_nameserver_id. string.The ID of this nameserver.
-
get_nameserver_tree
This function returns the list of nameservers available from all groups along the path from the root to the specified group.
data.
- nt_group_id
-
string. ID number of the group. REQUIRED.
return. The data struct returned contains the contents of the database entry for the username supplied:
- nameservers
-
array. The list of nameservers. Each element of the array is a hash containing the following named entries:
-
datadir. string.The path to the data directory on the nameserver.
-
description. string.The description of the nameserver.
-
output_format. string.The output format for the data. Either 'djb' or 'bind'.
-
service_type. string.The type of the name server. Either 'hosted' or 'data-only'.
-
logdir. string.The path to the log directory on the nameserver.
-
name. string.The hostname of the nameserver.
-
nt_group_id. string.The ID of the group of this nameserver.
-
deleted. string.Has this nameserver been deleted? '0' means false.
-
address. string.The dotted-decimal IP address of the nameserver.
-
ttl. string.The TTL value for this nameserver.
-
nt_nameserver_id. string.The ID of this nameserver.
-
get_user
This function returns information for a specific user.
return. The data struct returned contains the contents of the database entry for the username supplied:
- nt_user_id
-
string. user id
- nt_group_id
-
string. group id
- first_name
-
string. user's first name
- last_name
-
string. user's last name
- username
-
string. username
- password
-
string. password
-
string. the user's email address
- is_admin
-
string. 1 means true. is the user an admin?
- deleted
-
string. 0 means false. Is the user deleted?
- group_write
-
flag. Users may modify Group objects.
- group_create
-
flag. Users may create new Group objects.
- group_delete
-
flag. Users may delete Group objects.
- zone_write
-
flag. Users may modify Zone objects.
- zone_create
-
flag. Users may create Zone objects.
- zone_delegate
-
flag. Users may delegate Zone objects.
- zone_delete
-
flag. Users may delete Zone objects.
- zonerecord_write
-
flag. Users may modify Zone Record objects.
- zonerecord_create
-
flag. Users may create Zone Record objects.
- zonerecord_delegate
-
flag. Users may delegate Zone Record objects.
- zonerecord_delete
-
flag. Users may delete Zone Record objects.
- user_write
-
flag. Users may modify User objects.
- user_create
-
flag. Users may create User objects.
- user_delete
-
flag. Users may delete User objects.
- nameserver_write
-
flag. Users may modify Nameserver objects.
- nameserver_create
-
flag. Users may create Nameserver objects.
- nameserver_delete
-
flag. Users may delete Nameserver objects.
- self_write
-
flag. Users may modify themselves.
- usable_ns0
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns1
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns2
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns3
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns4
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns5
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns6
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns7
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns8
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
- usable_ns9
-
string. ID of a Nameserver Users may publish zones to. (May be NULL)
get_user_global_log
This function returns a list of log entries for actions performed by a specified user. The results may be split over multiple pages, by specifying values for the page, start, and limit parameters. The field to perform a search on is specified in the N_field parameter, and it may be one of 'timestamp','group_name','user','action', 'object', 'title', or 'description'. The quick-search fields are 'title', 'action', 'object', and 'description'.
data. Named hash elements in the data hash:
- nt_user_id
-
string. ID of the user.
- nt_group_id
-
string. ID number of the user's group. REQUIRED.
- page
-
int. Number of page to start on if results span multiple pages. (default 1)
- start
-
int. Number of the result to start with, if page is not defined. (default is 1)
- limit
-
int. Total number of results to return (default 20)
- Sort
-
int. 0 means false. Indicates that sort parameters have been included.
- N_sortfield
-
string. Sort the results by the given field. N is an integer: the hierarchy of the sort (up to 3). Possibly values are the same as N_field.
- N_sortmod
-
string. Sort the Nth sortfield in the given order. May be 'Ascending' or 'Descending'
- N_field
-
string. Search parameter number N is searching over the given field name. This may be one of the field names given in the function description.
- search_query
-
string. String describing the search in simple english.
- Search
-
int. 0 means false. Indicates that search parameters have been included. If false, return all results.
- N_option
-
string. Search parameter number N has the given condition. This option may be 'contains','starts with','ends with', 'equals', '>', '>=', '<','<='
- N_value
-
string. The search string for search parameter number N.
- N_inclusive