Use this API to fetch all the nslimitsessions resources that are configured on netscaler.
This uses nslimitsessions_args which is a way to provide additional arguments while fetching the resources.
966436
public static nslimitsessions[] get(nitro_service service, nslimitsessions_args args) throws Exception{
		nslimitsessions obj = new nslimitsessions();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		nslimitsessions[] response = (nslimitsessions[])obj.get_resources(service, option);
		return response;
	}
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;
	}
15911
public static nsmode get(nitro_service service) throws Exception{
		nsmode obj = new nsmode();
		nsmode[] response = (nsmode[])obj.get_resources(service);
		return response[0];
	}
1157257
public static aaasession[] get(nitro_service service, aaasession_args args) throws Exception{
		aaasession obj = new aaasession();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		aaasession[] response = (aaasession[])obj.get_resources(service, option);
		return response;
	}
215966
public static ns_aaasession[] get(nitro_service client) throws Exception
	{
		ns_aaasession resource = new ns_aaasession();
		resource.validate("get");
		return (ns_aaasession[]) resource.get_resources(client);
	}
316216
public static nspbr6[] get(nitro_service service, nspbr6_args args) throws Exception{
		nspbr6 obj = new nspbr6();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		nspbr6[] response = (nspbr6[])obj.get_resources(service, option);
		return response;
	}
658065
public static base_responses unset(nitro_service client, String limitidentifier[], String args[]) throws Exception {
		base_responses result = null;
		if (limitidentifier != null && limitidentifier.length > 0) {
			nslimitidentifier unsetresources[] = new nslimitidentifier[limitidentifier.length];
			for (int i=0;i<limitidentifier.length;i++){
				unsetresources[i] = new nslimitidentifier();
				unsetresources[i].limitidentifier = limitidentifier[i];
			}
			result = unset_bulk_request(client, unsetresources,args);
		}
		return result;
	}
104315
public static nslimitidentifier get(nitro_service service, String limitidentifier) throws Exception{
		nslimitidentifier obj = new nslimitidentifier();
		obj.set_limitidentifier(limitidentifier);
		nslimitidentifier response = (nslimitidentifier) obj.get_resource(service);
		return response;
	}
1162529
public static nslimitselector[] get(nitro_service service) throws Exception{
		nslimitselector obj = new nslimitselector();
		nslimitselector[] response = (nslimitselector[])obj.get_resources(service);
		return response;
	}
409924
public static nspbr6[] get(nitro_service service) throws Exception{
		nspbr6 obj = new nspbr6();
		nspbr6[] response = (nspbr6[])obj.get_resources(service);
		return response;
	}
675592
public static aaasession[] get(nitro_service service) throws Exception{
		aaasession obj = new aaasession();
		aaasession[] response = (aaasession[])obj.get_resources(service);
		return response;
	}
193758
protected void checkResourceRequestLimit(
      List<ResourceRequest> requestList, String handle)
      throws InvalidSessionHandle {
    ConfigManager configManager = getScheduler().getConfigManager();
    Session session = sessionManager.getSession(handle);
    PoolInfo poolInfo = session.getPoolInfo();

    // Only check the resource requests if this pool is configured to not
    // accept more than a fixed number of requests at the same time
    if (!configManager.useRequestMax(poolInfo)) {
      return;
    }

    // Count the resources by type
    ResourceTypeCounter resourceTypeCounter = new ResourceTypeCounter();
    for (ResourceRequest req : requestList) {
      resourceTypeCounter.incr(req.type);
    }

    // No resource type request should exceed the maximum
    for (ResourceType resourceType : ResourceType.values()) {
      if (configManager.getPoolMaximum(poolInfo, resourceType) <
          resourceTypeCounter.getCount(resourceType)) {
        String failureMessage =
            "Session " + handle + " requested " +
                resourceTypeCounter.getCount(resourceType) +
                " resources for resource type " +
                resourceType + " but was only allowed " +
                configManager.getPoolMaximum(poolInfo, resourceType) + ", " +
                "so failing the job";
        LOG.error(failureMessage);
        throw new InvalidSessionHandle(failureMessage);
      }
    }
  }
582939
public static base_response clear(nitro_service client, nslimitsessions resource) throws Exception {
		nslimitsessions clearresource = new nslimitsessions();
		clearresource.limitidentifier = resource.limitidentifier;
		return clearresource.perform_operation(client,"clear");
	}
736397
def get_rate_limit(self):
        
        headers, data = self.__requester.requestJsonAndCheck(
            'GET',
            '/rate_limit'
        )
        return RateLimit.RateLimit(self.__requester, headers, data["resources"], True)
62351
public static nstrace get(nitro_service service) throws Exception{
		nstrace obj = new nstrace();
		nstrace[] response = (nstrace[])obj.get_resources(service);
		return response[0];
	}
455623
public static nslimitidentifier_nslimitsessions_binding[] get_filtered(nitro_service service, String limitidentifier, filtervalue[] filter) throws Exception{
		nslimitidentifier_nslimitsessions_binding obj = new nslimitidentifier_nslimitsessions_binding();
		obj.set_limitidentifier(limitidentifier);
		options option = new options();
		option.set_filter(filter);
		nslimitidentifier_nslimitsessions_binding[] response = (nslimitidentifier_nslimitsessions_binding[]) obj.getfiltered(service, option);
		return response;
	}
65760
public static lbpersistentsessions[] get(nitro_service service, options option) throws Exception{
		lbpersistentsessions obj = new lbpersistentsessions();
		lbpersistentsessions[] response = (lbpersistentsessions[])obj.get_resources(service,option);
		return response;
	}