Panggil operasi GetVectorBucket untuk mengambil detail tentang sebuah vector bucket.
Izin
Akun Alibaba Cloud memiliki izin penuh secara default. Pengguna RAM dan Peran RAM tidak memiliki izin secara default. Akun Alibaba Cloud atau administrator harus memberikan izin melalui Kebijakan RAM atau kebijakan bucket.
API | Action | Description |
GetVectorBucket |
| Get vector bucket information. |
Sintaksis permintaan
GET /?bucketInfo HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou.oss-vectors.aliyuncs.com
Date: GMT Date
Authorization: SignatureValueHeader permintaan
Operasi ini hanya menggunakan header permintaan umum. Untuk informasi selengkapnya, lihat Common HTTP headers.
Header respons
Operasi ini hanya menggunakan header respons umum. Untuk informasi selengkapnya, lihat Common HTTP headers.
Elemen respons
Name | Type | Example value | Description |
BucketInfo | Kontainer | N/A | A container that holds vector bucket information. |
CreationDate | String | 2013-07-31T10:56:21.000Z | Waktu saat vector bucket dibuat, dalam format GMT. Parent node: BucketInfo |
ExtranetEndpoint | String | cn-hangzhou.oss-vectors.aliyuncs.com | Titik akhir publik untuk mengakses vector bucket. Parent node: BucketInfo |
IntranetEndpoint | String | cn-hangzhou-internal.oss-vectors.aliyuncs.com | Titik akhir internal untuk mengakses vector bucket. Parent node: BucketInfo |
Location | String | oss-cn-hangzhou | Wilayah tempat vector bucket berada, dalam format ID wilayah khusus OSS. Parent node: BucketInfo |
Region | String | cn-hangzhou | Wilayah tempat vector bucket berada, dalam format ID wilayah umum Alibaba Cloud. Parent node: BucketInfo |
Name | String | acs:ossvector:cn-shanghai:103735**********:test-bucket-3 | Identitas vector bucket, dikembalikan sebagai ARN bucket. Parent node: BucketInfo |
Contoh
Permintaan contoh
GET /?bucketInfo HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou.oss-vectors.aliyuncs.com
Date: Thu, 17 Apr 2025 07:51:28 GMT
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/oss/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218eRespons contoh
HTTP/1.1 200
x-oss-request-id: 534B371674E88A4D8906****
Date: Sat, 12 Sep 2025 07:51:28 GMT
Connection: keep-alive
Content-Length: 531
Server: AliyunOSS
{
"BucketInfo": {
"CreationDate": "2013-07-31T10:56:21.000Z",
"ExtranetEndpoint": "cn-hangzhou.oss-vectors.aliyuncs.com",
"IntranetEndpoint": "cn-hangzhou-internal.oss-vectors.aliyuncs.com",
"Location": "oss-cn-hangzhou",
"Name": "acs:ossvector:cn-shanghai:103735**********:examplebucket",
"Region": "cn-hangzhou"
}
}SDK
SDK berikut mendukung operasi GetVectorBucket:
Tool baris perintah ossutil
Untuk informasi mengenai perintah ossutil untuk operasi GetVectorBucket, lihat get-vector-bucket.
Kode error
Error code | HTTP status code | Description |
NoSuchBucket | 404 | Vector bucket yang ditentukan tidak ada. |
AccessDenied | 403 | Anda tidak diizinkan untuk melihat informasi bucket ini. Hanya Pemilik bucket yang dapat melihat informasi bucket. |
InvalidVectorBucketName | 400 | Nama vector bucket tidak memenuhi persyaratan penamaan. |