All Products
Search
Document Center

Object Storage Service:list-vector-buckets

Last Updated:Sep 30, 2025

The list-vector-buckets command lists all vector buckets in the current account.

Permissions

An Alibaba Cloud account has all permissions by default. By default, Resource Access Management (RAM) users or RAM roles have no permissions. The Alibaba Cloud account or an administrator must grant permissions using a RAM policy or a bucket policy.

API

Action

Description

ListVectorBuckets

oss:ListVectorBuckets

Lists vector buckets.

Command format

ossutil vectors-api list-vector-buckets [flags]

Parameters

Parameter

Type

Description

--prefix

string

The prefix that the names of vector buckets must match.

--marker

string

The position from which to start listing vector buckets. The results are returned in alphabetical order, starting from the entry that follows the marker.

--max-keys

integer

The maximum number of vector buckets to return. The value must be from 1 to 1,000. The default value is 100.

Note
  • The list-vector-buckets command corresponds to the ListVectorBuckets API operation.

  • For more information about the supported global command-line options, see Supported global command-line options.

Examples

  • List all vector buckets owned by the requester.

    ossutil vectors-api list-vector-buckets
  • List vector buckets whose names start with the prefix my.

    ossutil vectors-api list-vector-buckets --prefix my
  • List all vector buckets owned by the requester and set the maximum number of buckets to return to 100.

    ossutil vectors-api list-vector-buckets --max-keys 100