getIPAddressFilter method
This operation gets the IP address filter settings from a device. If the device supports device access control based on IP filtering rules (denied or accepted ranges of IP addresses), the device shall support the GetIPAddressFilter command.
Implementation
Future<IpAddressFilter> getIPAddressFilter() async {
loggy.debug('GetIPAddressFilter');
final responseEnvelope = await transport.request(
uri,
soap.Body(
request: DeviceManagementRequest.getIPAddressFilter(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetIpAddressFilterResponse.fromJson(responseEnvelope.body.response!)
.ipAddressFilter;
}