Anda dapat memanggil operasi GetVectorBucket untuk mengambil informasi detail tentang bucket vektor.
Permissions
Akun Alibaba Cloud memiliki semua izin secara default. Pengguna Resource Access Management (RAM) dan peran RAM tidak memiliki izin secara default. Pemilik Akun Alibaba Cloud atau administrator harus memberikan izin untuk operasi ini melalui RAM policy overview atau bucket policy.
|
API |
Action |
Description |
|
GetVectorBucket |
|
Mendapatkan informasi tentang bucket vektor. |
Sintaks permintaan
Get /?bucketInfo HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou-internal.oss-vectors.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request headers
Operasi ini hanya menggunakan header permintaan umum. Untuk informasi selengkapnya, lihat Common HTTP headers.
Response headers
Operasi ini hanya menggunakan header respons umum. Untuk informasi selengkapnya, lihat Common HTTP headers.
Elemen respons
|
Name |
Type |
Example |
Description |
|
BucketInfo |
Kontainer |
N/A |
Kontainer yang menyimpan informasi tentang bucket vektor. |
|
CreationDate |
String |
2013-07-31T10:56:21.000Z |
Waktu saat bucket vektor dibuat. Waktu dalam format GMT. Node induk: BucketInfo |
|
ExtranetEndpoint |
String |
cn-hangzhou.oss-vectors.aliyuncs.com |
Titik akhir publik bucket vektor. Node induk: BucketInfo |
|
IntranetEndpoint |
String |
cn-hangzhou-internal.oss-vectors.aliyuncs.com |
Titik akhir internal bucket vektor. Node induk: BucketInfo |
|
Location |
String |
oss-cn-hangzhou |
Wilayah tempat bucket vektor berada. Nilainya adalah ID wilayah khusus OSS. Node induk: BucketInfo |
|
Region |
String |
cn-hangzhou |
Wilayah tempat bucket vektor berada. Nilainya adalah ID wilayah Alibaba Cloud umum. Node induk: BucketInfo |
|
Name |
String |
acs:ossvector:cn-shanghai:103735**********:test-bucket-3 |
Identitas bucket vektor. Nilainya adalah Bucket ARN. Node induk: BucketInfo |
Contoh
Permintaan contoh
Get /?bucketInfo HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou-internal.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=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e
Respons 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:
ossutil command line interface
Untuk informasi tentang perintah ossutil untuk operasi GetVectorBucket, lihat get-vector-bucket.
Kode error
|
Error code |
HTTP status code |
Description |
|
NoSuchBucket |
404 |
Bucket vektor yang ditentukan tidak ada. |
|
AccessDenied |
403 |
Izin untuk melihat informasi bucket ditolak. Hanya pemilik bucket yang dapat melihat informasi bucket tersebut. |
|
InvalidVectorBucketName |
400 |
Nama bucket vektor tidak mengikuti konvensi penamaan. |