listIndexes method

Future<VectorIndexList> listIndexes({
  1. String? prefix,
  2. int? maxResults,
  3. String? nextToken,
})

Lists indexes in this bucket, optionally filtered by prefix and paginated with maxResults and nextToken.

Implementation

Future<VectorIndexList> listIndexes({
  String? prefix,
  int? maxResults,
  String? nextToken,
}) async {
  final response = await _storageFetch.post(
    '$_url/ListIndexes',
    {
      'vectorBucketName': bucketName,
      'prefix': ?prefix,
      'maxResults': ?maxResults,
      'nextToken': ?nextToken,
    },
    options: _options,
  );
  return VectorIndexList.fromJson(response as Map<String, dynamic>);
}