Lists all vector buckets in the current account.
Permissions
By default, Alibaba Cloud accounts have full permissions. RAM users and RAM roles have no permissions by default and must be granted access via a RAM policy or a bucket policy.
| API | Action | Description |
|---|---|---|
| ListVectorBuckets | oss:ListVectorBuckets | Lists vector buckets |
Syntax
ossutil vectors-api list-vector-buckets [flags]Parameters
All parameters are optional.
| Parameter | Type | Description |
|---|---|---|
--prefix | string | Filters results to vector buckets whose names start with the specified prefix. |
--marker | string | Sets the position from which to start listing. Results are returned in alphabetical order, starting from the entry after the marker value. Use with --max-keys to paginate through large result sets. |
--max-keys | integer | The maximum number of vector buckets to return per request. Valid values: 1–1,000. Default: 100. |
Note
This command corresponds to the ListVectorBuckets API operation. For supported global flags, see Supported global command-line options.
Examples
List all vector buckets
ossutil vectors-api list-vector-bucketsFilter by prefix
List vector buckets whose names start with my:
ossutil vectors-api list-vector-buckets --prefix myLimit the number of results
Return a maximum of 100 vector buckets:
ossutil vectors-api list-vector-buckets --max-keys 100