listIpRoutes method
Lists the address blocks that you have added to a directory.
May throw EntityDoesNotExistException. May throw InvalidNextTokenException. May throw InvalidParameterException. May throw ClientException. May throw ServiceException.
Parameter directoryId
:
Identifier (ID) of the directory for which you want to retrieve the IP
addresses.
Parameter limit
:
Maximum number of items to return. If this value is zero, the maximum
number of items is specified by the limitations of the operation.
Parameter nextToken
:
The ListIpRoutes.NextToken value from a previous call to
ListIpRoutes. Pass null if this is the first call.
Implementation
Future<ListIpRoutesResult> listIpRoutes({
required String directoryId,
int? limit,
String? nextToken,
}) async {
ArgumentError.checkNotNull(directoryId, 'directoryId');
_s.validateNumRange(
'limit',
limit,
0,
1152921504606846976,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.ListIpRoutes'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryId': directoryId,
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListIpRoutesResult.fromJson(jsonResponse.body);
}