listSystems method
Lists systems.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ValidationException.
Parameter ouId :
Filter systems by organizational unit (OU) identifier.
Implementation
Future<ListSystemsResponse> listSystems({
int? maxResults,
String? nextToken,
String? ouId,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
if (ouId != null) 'ouId': [ouId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/list-systems',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListSystemsResponse.fromJson(response);
}