Class: Zone

NS1.Zone

Represents all Zone objects on a client's account.

Constructor

new Zone()

Source:

Extends

Methods

(static) import_zonefile(zone_name, file, async_call) → {Promise}

Imports a zonefile and defines the zone's records w/ the info in the file.
Parameters:
Name Type Description
zone_name String
file String/File
async_call Boolean
Source:
Returns:
Type
Promise

(static) import_zonefile_sync(zone_name, file) → {Promise}

Wrapper method to make the import_zonefile API call synchronously.
Parameters:
Name Type Description
zone_name String
file String/File
Source:
Returns:
Type
Promise

(static) networks() → {Promise}

Returns all the networks a user can apply a zone to
Source:
Returns:
Type
Promise

create_resource_path() → {String}

Overrideable method to provide non-standard "PUT" behavior on creating new records. E.g. Zones require info in the URI where Data Sources don't.
Inherited From:
Source:
Returns:
Type
String

destroy() → {Promise}

Destroys an object on the server w/ the delete HTTP verb.
Inherited From:
Source:
Returns:
Type
Promise

get_resource_path() → {String}

Defines the resource path w/ necessary zone information to succesfully GET the resource. Used internally.
Overrides:
Source:
Returns:
Type
String

qps() → {Promise}

Returns the Queries Per Second statistics of a single record
Source:
Returns:
Type
Promise

save() → {Promise}

Saves an object on the server.
Inherited From:
Source:
Returns:
Type
Promise

update(attributes) → {Promise}

Updates an object w/ the provided attributes.
Parameters:
Name Type Description
attributes Object
Inherited From:
Source:
Returns:
Type
Promise

usage() → {Promise}

Returns usage statistics on a single record
Source:
Returns:
Type
Promise