Use this API to fetch snmpcommunity resource of given name .
321659
public static snmpcommunity get(nitro_service service, String communityname) throws Exception{
		snmpcommunity obj = new snmpcommunity();
		obj.set_communityname(communityname);
		snmpcommunity response = (snmpcommunity) obj.get_resource(service);
		return response;
	}
892758
public static vpnformssoaction get(nitro_service service, String name) throws Exception{
		vpnformssoaction obj = new vpnformssoaction();
		obj.set_name(name);
		vpnformssoaction response = (vpnformssoaction) obj.get_resource(service);
		return response;
	}
138108
public static netprofile get(nitro_service service, String name) throws Exception{
		netprofile obj = new netprofile();
		obj.set_name(name);
		netprofile response = (netprofile) obj.get_resource(service);
		return response;
	}
605395
def get_by_name(self, name):
        
        result = self.get_by("name", name)

        if result:
            data = result[0]
            new_resource = self.new(self._connection, data)
        else:
            new_resource = None

        return new_resource
1338457
def get_snmp_service(self):
        
        return SnmpContextManager(self.enable_flow, self.disable_flow, self._snmp_parameters, self._logger)
48356
public static snmpoption get(nitro_service service) throws Exception{
		snmpoption obj = new snmpoption();
		snmpoption[] response = (snmpoption[])obj.get_resources(service);
		return response[0];
	}
738900
public static snmpengineid[] get(nitro_service service, Long ownernode[]) throws Exception{
		if (ownernode !=null && ownernode.length>0) {
			snmpengineid response[] = new snmpengineid[ownernode.length];
			snmpengineid obj[] = new snmpengineid[ownernode.length];
			for (int i=0;i<ownernode.length;i++) {
				obj[i] = new snmpengineid();
				obj[i].set_ownernode(ownernode[i]);
				response[i] = (snmpengineid) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
45745
def get(method, hmc, uri, uri_parms, logon_required):
        """"""
        try:
            resource = hmc.lookup_by_uri(uri)
        except KeyError:
            raise InvalidResourceError(method, uri)
        return resource.properties
937701
public static snmpmib get(nitro_service service,  options option) throws Exception{
		snmpmib obj = new snmpmib();
		snmpmib[] response = (snmpmib[])obj.get_resources(service,option);
		return response[0];
	}
832023
public static authenticationauthnprofile get(nitro_service service, String name) throws Exception{
		authenticationauthnprofile obj = new authenticationauthnprofile();
		obj.set_name(name);
		authenticationauthnprofile response = (authenticationauthnprofile) obj.get_resource(service);
		return response;
	}
1338282
public static nspbr6 get(nitro_service service, String name) throws Exception{
		nspbr6 obj = new nspbr6();
		obj.set_name(name);
		nspbr6 response = (nspbr6) obj.get_resource(service);
		return response;
	}
457293
public static server_binding get(nitro_service service, String name) throws Exception{
		server_binding obj = new server_binding();
		obj.set_name(name);
		server_binding response = (server_binding) obj.get_resource(service);
		return response;
	}
845640
public static base_response add(nitro_service client, snmpcommunity resource) throws Exception {
		snmpcommunity addresource = new snmpcommunity();
		addresource.communityname = resource.communityname;
		addresource.permissions = resource.permissions;
		return addresource.add_resource(client);
	}
1209788
public static snmp_trap[] get(nitro_service client) throws Exception
	{
		snmp_trap resource = new snmp_trap();
		resource.validate("get");
		return (snmp_trap[]) resource.get_resources(client);
	}
215493
public static syslog_snmp[] get(nitro_service client) throws Exception
	{
		syslog_snmp resource = new syslog_snmp();
		resource.validate("get");
		return (syslog_snmp[]) resource.get_resources(client);
	}
160701
public static cmppolicy get(nitro_service service, String name) throws Exception{
		cmppolicy obj = new cmppolicy();
		obj.set_name(name);
		cmppolicy response = (cmppolicy) obj.get_resource(service);
		return response;
	}
1105505
public static base_responses update(nitro_service client, snmpmanager resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpmanager updateresources[] = new snmpmanager[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new snmpmanager();
				updateresources[i].ipaddress = resources[i].ipaddress;
				updateresources[i].netmask = resources[i].netmask;
				updateresources[i].domainresolveretry = resources[i].domainresolveretry;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}