Use this API to fetch all the dospolicy resources that are configured on netscaler.
351200
public static dospolicy[] get(nitro_service service) throws Exception{
		dospolicy obj = new dospolicy();
		dospolicy[] response = (dospolicy[])obj.get_resources(service);
		return response;
	}
897865
public static vpnglobal_vpnsessionpolicy_binding[] get(nitro_service service) throws Exception{
		vpnglobal_vpnsessionpolicy_binding obj = new vpnglobal_vpnsessionpolicy_binding();
		vpnglobal_vpnsessionpolicy_binding response[] = (vpnglobal_vpnsessionpolicy_binding[]) obj.get_resources(service);
		return response;
	}
870413
public static policystringmap[] get(nitro_service service) throws Exception{
		policystringmap obj = new policystringmap();
		policystringmap[] response = (policystringmap[])obj.get_resources(service);
		return response;
	}
327195
public static autoscalepolicy_stats[] get(nitro_service service) throws Exception{
		autoscalepolicy_stats obj = new autoscalepolicy_stats();
		autoscalepolicy_stats[] response = (autoscalepolicy_stats[])obj.stat_resources(service);
		return response;
	}
340768
public static vpnurl[] get(nitro_service service) throws Exception{
		vpnurl obj = new vpnurl();
		vpnurl[] response = (vpnurl[])obj.get_resources(service);
		return response;
	}
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;
	}
1220468
public static policyexpression[] get(nitro_service service) throws Exception{
		policyexpression obj = new policyexpression();
		policyexpression[] response = (policyexpression[])obj.get_resources(service);
		return response;
	}
1163501
public static policydataset[] get(nitro_service service) throws Exception{
		policydataset obj = new policydataset();
		policydataset[] response = (policydataset[])obj.get_resources(service);
		return response;
	}
1210339
public static pqpolicy_stats[] get(nitro_service service) throws Exception{
		pqpolicy_stats obj = new pqpolicy_stats();
		pqpolicy_stats[] response = (pqpolicy_stats[])obj.stat_resources(service);
		return response;
	}
773318
def _get_all_resourcescenarios(network_id, user_id):
    

    rs_qry = db.DBSession.query(
                Dataset.type,
                Dataset.unit_id,
                Dataset.name,
                Dataset.hash,
                Dataset.cr_date,
                Dataset.created_by,
                Dataset.hidden,
                Dataset.value,
                ResourceScenario.dataset_id,
                ResourceScenario.scenario_id,
                ResourceScenario.resource_attr_id,
                ResourceScenario.source,
                ResourceAttr.attr_id,
    ).outerjoin(DatasetOwner, and_(DatasetOwner.dataset_id==Dataset.id, DatasetOwner.user_id==user_id)).filter(
                or_(Dataset.hidden=='N', Dataset.created_by==user_id, DatasetOwner.user_id != None),
                ResourceAttr.id == ResourceScenario.resource_attr_id,
                Scenario.id==ResourceScenario.scenario_id,
                Scenario.network_id==network_id,
                Dataset.id==ResourceScenario.dataset_id)

    x = time.time()
    logging.info("Getting all resource scenarios")
    all_rs = db.DBSession.execute(rs_qry.statement).fetchall()
    log.info("%s resource scenarios retrieved in %s", len(all_rs), time.time()-x)


    logging.info("resource scenarios retrieved. Processing results...")
    x = time.time()
    rs_dict = dict()
    for rs in all_rs:
        rs_obj = JSONObject(rs)
        rs_attr = JSONObject({'attr_id':rs.attr_id})

        value = rs.value

        rs_dataset = JSONDataset({
            'id':rs.dataset_id,
            'type' : rs.type,
            'unit_id' : rs.unit_id,
            'name' : rs.name,
            'hash' : rs.hash,
            'cr_date':rs.cr_date,
            'created_by':rs.created_by,
            'hidden':rs.hidden,
            'value':value,
            'metadata':{},
        })
        rs_obj.resourceattr = rs_attr
        rs_obj.value = rs_dataset
        rs_obj.dataset = rs_dataset

        scenario_rs = rs_dict.get(rs.scenario_id, [])
        scenario_rs.append(rs_obj)
        rs_dict[rs.scenario_id] = scenario_rs

    logging.info("resource scenarios processed in %s", time.time()-x)

    return rs_dict
523232
public static cachepolicy_stats[] get(nitro_service service) throws Exception{
		cachepolicy_stats obj = new cachepolicy_stats();
		cachepolicy_stats[] response = (cachepolicy_stats[])obj.stat_resources(service);
		return response;
	}
378707
public static dnsglobal_dnspolicy_binding[] get(nitro_service service) throws Exception{
		dnsglobal_dnspolicy_binding obj = new dnsglobal_dnspolicy_binding();
		dnsglobal_dnspolicy_binding response[] = (dnsglobal_dnspolicy_binding[]) obj.get_resources(service);
		return response;
	}
1138594
public static service_scpolicy_binding[] get(nitro_service service, String name) throws Exception{
		service_scpolicy_binding obj = new service_scpolicy_binding();
		obj.set_name(name);
		service_scpolicy_binding response[] = (service_scpolicy_binding[]) obj.get_resources(service);
		return response;
	}
868583
public static service_dospolicy_binding[] get(nitro_service service, String name) throws Exception{
		service_dospolicy_binding obj = new service_dospolicy_binding();
		obj.set_name(name);
		service_dospolicy_binding response[] = (service_dospolicy_binding[]) obj.get_resources(service);
		return response;
	}
203337
protected base_resource[] get_nitro_response(nitro_service service, String response) throws Exception {
		dos_stats[] resources = new dos_stats[1];
		dos_response result = (dos_response) service.get_payload_formatter().string_to_resource(dos_response.class, response);
		if(result.errorcode != 0) {
			if (result.errorcode == 444) {
				service.clear_session();
			}
			if(result.severity != null)
			{
				if (result.severity.equals("ERROR"))
					throw new nitro_exception(result.message,result.errorcode);
			}
			else
			{
				throw new nitro_exception(result.message,result.errorcode);
			}
		}
		resources[0] = result.dos;
		return resources;
	}
769338
public java.util.List<ResourcePolicy> getResourcePolicies() {
        if (resourcePolicies == null) {
            resourcePolicies = new com.amazonaws.internal.SdkInternalList<ResourcePolicy>();
        }
        return resourcePolicies;
    }
426704
public static base_response add(nitro_service client, dospolicy resource) throws Exception {
		dospolicy addresource = new dospolicy();
		addresource.name = resource.name;
		addresource.qdepth = resource.qdepth;
		addresource.cltdetectrate = resource.cltdetectrate;
		return addresource.add_resource(client);
	}