Use this API to fetch all the nsmode resources that are configured on netscaler.
15911
public static nsmode get(nitro_service service) throws Exception{
		nsmode obj = new nsmode();
		nsmode[] response = (nsmode[])obj.get_resources(service);
		return response[0];
	}
1374898
public static nsxmlnamespace[] get(nitro_service service) throws Exception{
		nsxmlnamespace obj = new nsxmlnamespace();
		nsxmlnamespace[] response = (nsxmlnamespace[])obj.get_resources(service);
		return response;
	}
303485
public static ns_ns_runningconfig get(nitro_service client, ns_ns_runningconfig resource) throws Exception
	{
		resource.validate("get");
		return ((ns_ns_runningconfig[]) resource.get_resources(client))[0];
	}
318952
public static ns_detail_vlan[] get(nitro_service client) throws Exception
	{
		ns_detail_vlan resource = new ns_detail_vlan();
		resource.validate("get");
		return (ns_detail_vlan[]) resource.get_resources(client);
	}
632973
def inspect_resources(self):
        
        if not self._inspect_resources:
            d = {}
            for m in self.inspect_members:
                if issubclass(m, (AWSObject, cloudformation.AWSCustomObject)) \
                        and hasattr(m, 'resource_type'):
                    d[m.resource_type] = m

            TemplateGenerator._inspect_resources = d

        return self._inspect_resources
884646
public static netprofile[] get(nitro_service service, options option) throws Exception{
		netprofile obj = new netprofile();
		netprofile[] response = (netprofile[])obj.get_resources(service,option);
		return response;
	}
953387
def _servicegroup_get_servers(sg_name, **connection_args):
    '''
    
    '''
    nitro = _connect(**connection_args)
    if nitro is None:
        return None
    sg = NSServiceGroup()
    sg.set_servicegroupname(sg_name)
    try:
        sg = NSServiceGroup.get_servers(nitro, sg)
    except NSNitroError as error:
        log.debug('netscaler module error - NSServiceGroup.get_servers failed(): %s', error)
        sg = None
    _disconnect(nitro)
    return sg
925035
public static base_response enable(nitro_service client, nsmode resource) throws Exception {
		nsmode enableresource = new nsmode();
		enableresource.mode = resource.mode;
		return enableresource.perform_operation(client,"enable");
	}
1078757
public static nssavedconfig get(nitro_service service) throws Exception{
		nssavedconfig obj = new nssavedconfig();
		nssavedconfig[] response = (nssavedconfig[])obj.get_resources(service);
		return response[0];
	}
26725
def get_resources(cls):
        """"""
        exts = []
        parent = dict(member_name=ciscohostingdevicemanager.DEVICE,
                      collection_name=ciscohostingdevicemanager.DEVICES)
        controller = resource.Resource(
            RouterHostingDeviceSchedulerController(), cb_faults.FAULT_MAP)
        exts.append(extensions.ResourceExtension(
            DEVICE_L3_ROUTERS, controller, parent, path_prefix="/dev_mgr"))
        parent = dict(member_name="router",
                      collection_name=l3_const.ROUTERS)
        controller = resource.Resource(
            HostingDevicesHostingRouterController(), cb_faults.FAULT_MAP)
        exts.append(extensions.ResourceExtension(L3_ROUTER_DEVICES, controller,
                                                 parent))
        return exts
229931
public static ntpserver[] get(nitro_service service) throws Exception{
		ntpserver obj = new ntpserver();
		ntpserver[] response = (ntpserver[])obj.get_resources(service);
		return response;
	}
79816
public static nsacl[] get(nitro_service service, options option) throws Exception{
		nsacl obj = new nsacl();
		nsacl[] response = (nsacl[])obj.get_resources(service,option);
		return response;
	}
610478
public static nsconfig get(nitro_service service) throws Exception{
		nsconfig obj = new nsconfig();
		nsconfig[] response = (nsconfig[])obj.get_resources(service);
		return response[0];
	}
1357434
public static systemdatasource get(nitro_service service) throws Exception{
		systemdatasource obj = new systemdatasource();
		systemdatasource[] response = (systemdatasource[])obj.get_resources(service);
		return response[0];
	}
1370548
def get_resources_nodes(call=None, resFilter=None):
    '''
    
    '''
    log.debug('Getting resource: nodes.. (filter: %s)', resFilter)
    resources = query('get', 'cluster/resources')

    ret = {}
    for resource in resources:
        if 'type' in resource and resource['type'] == 'node':
            name = resource['node']
            ret[name] = resource

    if resFilter is not None:
        log.debug('Filter given: %s, returning requested '
                  'resource: nodes', resFilter)
        return ret[resFilter]

    log.debug('Filter not given: %s, returning all resource: nodes', ret)
    return ret
680275
public static nssimpleacl6[] get(nitro_service service) throws Exception{
		nssimpleacl6 obj = new nssimpleacl6();
		nssimpleacl6[] response = (nssimpleacl6[])obj.get_resources(service);
		return response;
	}
286740
public static nstcpprofile[] get(nitro_service service) throws Exception{
		nstcpprofile obj = new nstcpprofile();
		nstcpprofile[] response = (nstcpprofile[])obj.get_resources(service);
		return response;
	}