ListIndexes
Note
Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.
Returns a list of all the vector indexes within the specified vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).
- Permissions
-
You must have the
s3vectors:ListIndexes
permission to use this operation.
Request Syntax
POST /ListIndexes HTTP/1.1
Content-type: application/json
{
"maxResults": number
,
"nextToken": "string
",
"prefix": "string
",
"vectorBucketArn": "string
",
"vectorBucketName": "string
"
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- maxResults
-
The maximum number of items to be returned in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 500.
Required: No
- nextToken
-
The previous pagination token.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 512.
Required: No
- prefix
-
Limits the response to vector indexes that begin with the specified prefix.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Required: No
- vectorBucketArn
-
The ARN of the vector bucket that contains the vector indexes.
Type: String
Required: No
- vectorBucketName
-
The name of the vector bucket that contains the vector indexes.
Type: String
Length Constraints: Minimum length of 3. Maximum length of 63.
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"indexes": [
{
"creationTime": number,
"indexArn": "string",
"indexName": "string",
"vectorBucketName": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- indexes
-
The attributes of the vector indexes
Type: Array of IndexSummary objects
- nextToken
-
The next pagination token.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 512.
Errors
- AccessDeniedException
-
Access denied.
HTTP Status Code: 403
- InternalServerException
-
The request failed due to an internal server error.
HTTP Status Code: 500
- NotFoundException
-
The request was rejected because the specified resource can't be found.
HTTP Status Code: 404
- ServiceQuotaExceededException
-
Your request exceeds a service quota.
HTTP Status Code: 402
- ServiceUnavailableException
-
The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.
HTTP Status Code: 503
- TooManyRequestsException
-
The request was denied due to request throttling.
HTTP Status Code: 429
- ValidationException
-
The requested action isn't valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: