Use this API to fetch all the dnszone resources that are configured on netscaler.
This uses dnszone_args which is a way to provide additional arguments while fetching the resources.
503876
public static dnszone[] get(nitro_service service, dnszone_args args) throws Exception{
		dnszone obj = new dnszone();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnszone[] response = (dnszone[])obj.get_resources(service, option);
		return response;
	}
933379
def get(args):
    
    password = get_password(args)
    token = connect.get_token(args.username, password, args.server)

    if args.__dict__.get('search'):
        # When using '--search' option
        keyword = args.search

    else:
        keyword = ''

    if args.__dict__.get('raw_flag'):
        raw_flag = True
    else:
        raw_flag = False

    if args.__dict__.get('domain'):
        # When specified zone
        domain = args.domain
        data = processing.get_zone(args.server, token, domain,
                                   keyword, raw_flag)
        return data

    else:
        # When get all zones
        processing.get_all_zone(args.server, token)
1346469
public static dnssuffix[] get(nitro_service service) throws Exception{
		dnssuffix obj = new dnssuffix();
		dnssuffix[] response = (dnssuffix[])obj.get_resources(service);
		return response;
	}
670713
def get_dhcp_options(dhcp_options_name=None, dhcp_options_id=None,
                     region=None, key=None, keyid=None, profile=None):
    '''
    
    '''
    if not any((dhcp_options_name, dhcp_options_id)):
        raise SaltInvocationError('At least one of the following must be specified: '
                                  'dhcp_options_name, dhcp_options_id.')

    if not dhcp_options_id and dhcp_options_name:
        dhcp_options_id = _get_resource_id('dhcp_options', dhcp_options_name,
                                            region=region, key=key,
                                            keyid=keyid, profile=profile)
    if not dhcp_options_id:
        return {'dhcp_options': {}}

    try:
        conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
        r = conn.get_all_dhcp_options(dhcp_options_ids=[dhcp_options_id])
    except BotoServerError as e:
        return {'error': __utils__['boto.get_error'](e)}

    if not r:
        return {'dhcp_options': None}

    keys = ('domain_name', 'domain_name_servers', 'ntp_servers',
            'netbios_name_servers', 'netbios_node_type')

    return {'dhcp_options': dict((k, r[0].options.get(k)) for k in keys)}
1207093
public static dnsaddrec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsaddrec obj = new dnsaddrec();
		options option = new options();
		option.set_filter(filter);
		dnsaddrec[] response = (dnsaddrec[]) obj.getfiltered(service, option);
		return response;
	}
995638
public static dnsmxrec[] get(nitro_service service, options option) throws Exception{
		dnsmxrec obj = new dnsmxrec();
		dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service,option);
		return response;
	}
778498
def parse_get(prs, conn):
    
    prs_get = prs.add_parser(
        'get', help='retrieve all zones or records with a specific zone')
    prs_get.add_argument('--domain', action='store',
                         help='specify domain FQDN')
    conn_options(prs_get, conn)
    set_option(prs_get, 'search')
    prs_get.set_defaults(func=get)
1355933
public static dnsnsecrec[] get(nitro_service service) throws Exception{
		dnsnsecrec obj = new dnsnsecrec();
		dnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(service);
		return response;
	}
713088
def get_zones(region, auth_kwargs):
    
    ec2_conn = boto.ec2.connect_to_region(region, **auth_kwargs)
    return [zone.name for zone in ec2_conn.get_all_zones()]
1284949
public static base_responses add(nitro_service client, dnsaddrec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsaddrec addresources[] = new dnsaddrec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsaddrec();
				addresources[i].hostname = resources[i].hostname;
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
336094
public static long count(nitro_service service, String zonename) throws Exception{
		dnszone_domain_binding obj = new dnszone_domain_binding();
		obj.set_zonename(zonename);
		options option = new options();
		option.set_count(true);
		dnszone_domain_binding response[] = (dnszone_domain_binding[]) obj.get_resources(service,option);
		if (response != null) {
			return response[0].__count;
		}
		return 0;
	}
1220367
public static nshostname[] get(nitro_service service, options option) throws Exception{
		nshostname obj = new nshostname();
		nshostname[] response = (nshostname[])obj.get_resources(service,option);
		return response;
	}
1245951
protected function fetchZones()
    {
        $results = $this->pagedSoapCall('getZoneList', [], 'zoneInfo');
        foreach ($results as $zone) {
            $this->zones[$zone['domainName']] = $zone;
        }
    }
1373288
public static dnszone_binding get(nitro_service service, String zonename) throws Exception{
		dnszone_binding obj = new dnszone_binding();
		obj.set_zonename(zonename);
		dnszone_binding response = (dnszone_binding) obj.get_resource(service);
		return response;
	}
803615
public static base_responses unsign(nitro_service client, dnszone resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnszone unsignresources[] = new dnszone[resources.length];
			for (int i=0;i<resources.length;i++){
				unsignresources[i] = new dnszone();
				unsignresources[i].zonename = resources[i].zonename;
				unsignresources[i].keyname = resources[i].keyname;
			}
			result = perform_operation_bulk_request(client, unsignresources,"unsign");
		}
		return result;
	}
1179730
public static base_response update(nitro_service client, dnszone resource) throws Exception {
		dnszone updateresource = new dnszone();
		updateresource.zonename = resource.zonename;
		updateresource.proxymode = resource.proxymode;
		updateresource.dnssecoffload = resource.dnssecoffload;
		updateresource.nsec = resource.nsec;
		return updateresource.update_resource(client);
	}
1011208
public static base_responses delete(nitro_service client, dnsaddrec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsaddrec deleteresources[] = new dnsaddrec[resources.length];
			for (int i=0;i<resources.length;i++){
				deleteresources[i] = new dnsaddrec();
				deleteresources[i].hostname = resources[i].hostname;
				deleteresources[i].ipaddress = resources[i].ipaddress;
			}
			result = delete_bulk_request(client, deleteresources);
		}
		return result;
	}