listRegistries method

Future<ListRegistriesResponse> listRegistries({
  1. int? limit,
  2. String? nextToken,
  3. String? registryNamePrefix,
  4. String? scope,
})

List the registries.

May throw ServiceUnavailableException. May throw BadRequestException. May throw UnauthorizedException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter nextToken : The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.

Parameter registryNamePrefix : Specifying this limits the results to only those registry names that start with the specified prefix.

Parameter scope : Can be set to Local or AWS to limit responses to your custom registries, or the ones provided by AWS.

Implementation

Future<ListRegistriesResponse> listRegistries({
  int? limit,
  String? nextToken,
  String? registryNamePrefix,
  String? scope,
}) async {
  final $query = <String, List<String>>{
    if (limit != null) 'limit': [limit.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
    if (registryNamePrefix != null)
      'registryNamePrefix': [registryNamePrefix],
    if (scope != null) 'scope': [scope],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/registries',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListRegistriesResponse.fromJson(response);
}