getHostname method
This operation is used by an endpoint to get the hostname from a device. The device shall return its hostname configurations through the getHostname
Access Class: PRE_AUTH
Implementation
Future<HostnameInformation> getHostname() async {
loggy.debug('getHostname');
final responseEnvelope = await transport.request(
uri,
soap.Body(
request: DeviceManagementRequest.getHostname(),
));
if (responseEnvelope.body.hasFault) {
throw Exception(responseEnvelope.body.fault.toString());
}
return GetHostnameResponse.fromJson(responseEnvelope.body.response!)
.hostnameInformation;
}