describeRouterConfiguration method
Details about the router.
May throw DirectConnectClientException.
May throw DirectConnectServerException.
Parameter virtualInterfaceId :
The ID of the virtual interface.
Parameter routerTypeIdentifier :
Identifies the router by a combination of vendor, platform, and software
version. For example,
CiscoSystemsInc-2900SeriesRouters-IOS124.
Implementation
Future<DescribeRouterConfigurationResponse> describeRouterConfiguration({
required String virtualInterfaceId,
String? routerTypeIdentifier,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.DescribeRouterConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'virtualInterfaceId': virtualInterfaceId,
if (routerTypeIdentifier != null)
'routerTypeIdentifier': routerTypeIdentifier,
},
);
return DescribeRouterConfigurationResponse.fromJson(jsonResponse.body);
}