<pre>
Use this operation to get configured vlans.
</pre>
422177
public static ns_vlan[] get(nitro_service client) throws Exception
	{
		ns_vlan resource = new ns_vlan();
		resource.validate("get");
		return (ns_vlan[]) resource.get_resources(client);
	}
340768
public static vpnurl[] get(nitro_service service) throws Exception{
		vpnurl obj = new vpnurl();
		vpnurl[] response = (vpnurl[])obj.get_resources(service);
		return response;
	}
528885
def from_name(cls, name):
        """"""
        result = cls.list()
        vlans = {}
        for vlan in result:
            vlans[vlan['name']] = vlan['id']

        return vlans.get(name)
680190
public static bridgegroup_vlan_binding[] get_filtered(nitro_service service, Long id, String filter) throws Exception{
		bridgegroup_vlan_binding obj = new bridgegroup_vlan_binding();
		obj.set_id(id);
		options option = new options();
		option.set_filter(filter);
		bridgegroup_vlan_binding[] response = (bridgegroup_vlan_binding[]) obj.getfiltered(service, option);
		return response;
	}
876237
public static netbridge_vlan_binding[] get(nitro_service service, String name) throws Exception{
		netbridge_vlan_binding obj = new netbridge_vlan_binding();
		obj.set_name(name);
		netbridge_vlan_binding response[] = (netbridge_vlan_binding[]) obj.get_resources(service);
		return response;
	}
296986
public static dnsaddrec[] get(nitro_service service) throws Exception{
		dnsaddrec obj = new dnsaddrec();
		dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service);
		return response;
	}
549714
public static vlan_linkset_binding[] get(nitro_service service, Long id) throws Exception{
		vlan_linkset_binding obj = new vlan_linkset_binding();
		obj.set_id(id);
		vlan_linkset_binding response[] = (vlan_linkset_binding[]) obj.get_resources(service);
		return response;
	}
271207
def update(self, vlans):
        

        data = {'vlans': vlans}
        vlans_ids = [str(vlan.get('id')) for vlan in vlans]

        return super(ApiVlan, self).put('api/v3/vlan/%s/' %
                                        ';'.join(vlans_ids), data)
1136570
def _get_vlan_list(self, vlan_str):
        

        result = set()
        for splitted_vlan in vlan_str.split(","):
            if "-" not in splitted_vlan:
                if validate_vlan_number(splitted_vlan):
                    result.add(int(splitted_vlan))
                else:
                    raise Exception(self.__class__.__name__, "Wrong VLAN number detected {}".format(splitted_vlan))
            else:
                if self.IS_VLAN_RANGE_SUPPORTED:
                    if validate_vlan_range(splitted_vlan):
                        result.add(splitted_vlan)
                    else:
                        raise Exception(self.__class__.__name__, "Wrong VLANs range detected {}".format(vlan_str))
                else:
                    start, end = map(int, splitted_vlan.split("-"))
                    if validate_vlan_number(start) and validate_vlan_number(end):
                        if start > end:
                            start, end = end, start
                        for vlan in range(start, end + 1):
                            result.add(vlan)
                    else:
                        raise Exception(self.__class__.__name__, "Wrong VLANs range detected {}".format(vlan_str))

        return map(str, list(result))
295074
public static managed_device[] get(nitro_service client) throws Exception
	{
		managed_device resource = new managed_device();
		resource.validate("get");
		return (managed_device[]) resource.get_resources(client);
	}
364522
public static nstrafficdomain_vlan_binding[] get(nitro_service service, Long td) throws Exception{
		nstrafficdomain_vlan_binding obj = new nstrafficdomain_vlan_binding();
		obj.set_td(td);
		nstrafficdomain_vlan_binding response[] = (nstrafficdomain_vlan_binding[]) obj.get_resources(service);
		return response;
	}
1243940
public static host_device[] get(nitro_service client) throws Exception
	{
		host_device resource = new host_device();
		resource.validate("get");
		return (host_device[]) resource.get_resources(client);
	}
116072
def get_dev_vlans(devid, auth, url):
    

    # checks to see if the imc credentials are already available
    get_dev_vlans_url = "/imcrs/vlan?devId=" + str(devid) + "&start=0&size=5000&total=false"
    f_url = url + get_dev_vlans_url

    # creates the URL using the payload variable as the contents
    r = requests.get(f_url, auth=auth, headers=HEADERS)
    # r.status_code
    try:
        if r.status_code == 200:
            dev_vlans = (json.loads(r.text))
            return dev_vlans['vlan']
        elif r.status_code == 409:
            return {'vlan': 'no vlans'}
    except requests.exceptions.RequestException as e:
            return "Error:\n" + str(e) + ' get_dev_vlans: An Error has occured'
838536
def configure_vlan(self, vid, commands):
        
        commands = make_iterable(commands)
        commands.insert(0, 'vlan %s' % vid)
        return self.configure(commands)
1022337
public static vpnvserver[] get(nitro_service service) throws Exception{
		vpnvserver obj = new vpnvserver();
		vpnvserver[] response = (vpnvserver[])obj.get_resources(service);
		return response;
	}
6100
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{
		if (Dnssuffix !=null && Dnssuffix.length>0) {
			dnssuffix response[] = new dnssuffix[Dnssuffix.length];
			dnssuffix obj[] = new dnssuffix[Dnssuffix.length];
			for (int i=0;i<Dnssuffix.length;i++) {
				obj[i] = new dnssuffix();
				obj[i].set_Dnssuffix(Dnssuffix[i]);
				response[i] = (dnssuffix) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
558899
public static onlinkipv6prefix[] get(nitro_service service) throws Exception{
		onlinkipv6prefix obj = new onlinkipv6prefix();
		onlinkipv6prefix[] response = (onlinkipv6prefix[])obj.get_resources(service);
		return response;
	}