全部产品
Search
文档中心

Object Storage Service:GetVectorBucket

更新时间:Nov 09, 2025

Operasi GetVectorBucket mengambil detail bucket vektor.

Izin

Secara default, Akun Alibaba Cloud memiliki semua izin. Namun, pengguna Resource Access Management (RAM) dan peran RAM yang termasuk dalam Akun Alibaba Cloud tidak memiliki izin secara default. Administrator Akun Alibaba Cloud harus memberikan izin untuk operasi menggunakan Kebijakan RAM atau kebijakan bucket.

API

Tindakan

Deskripsi

GetVectorBucket

oss:GetVectorBucket

Mendapatkan informasi tentang bucket vektor.

Sintaks permintaan

Get /?bucketInfo HTTP/1.1
Host: examplebucket-123***456.cn-hangzhou.oss-vectors.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Header permintaan

Operasi ini hanya menggunakan header permintaan umum. Untuk informasi lebih lanjut, lihat Header HTTP Umum.

Header tanggapan

Operasi ini hanya menggunakan header tanggapan umum. Untuk informasi lebih lanjut, lihat Header HTTP Umum.

Elemen tanggapan

Nama

Tipe

Contoh

Deskripsi

BucketInfo

Kontainer

N/A

Kontainer untuk informasi tentang bucket vektor.

CreationDate

String

2013-07-31T10:56:21.000Z

Waktu ketika bucket vektor dibuat, dalam format GMT.

Node induk: BucketInfo

ExtranetEndpoint

String

cn-hangzhou.oss-vectors.aliyuncs.com

Titik akhir publik dari bucket vektor.

Node induk: BucketInfo

IntranetEndpoint

String

cn-hangzhou-internal.oss-vectors.aliyuncs.com

Titik akhir internal dari bucket vektor.

Node induk: BucketInfo

Location

String

oss-cn-hangzhou

Wilayah tempat bucket vektor berada. Nilainya adalah ID wilayah spesifik Layanan Penyimpanan Objek (OSS).

Node induk: BucketInfo

Region

String

cn-hangzhou

Wilayah tempat bucket vektor berada. Nilainya adalah ID wilayah umum Alibaba Cloud.

Node induk: BucketInfo

Name

String

acs:ossvector:cn-shanghai:103735**********:test-bucket-3

Identitas bucket vektor. Nilainya adalah Nama Sumber Daya Alibaba Cloud (ARN) dari bucket tersebut.

Node induk: BucketInfo

Contoh

Permintaan sampel:

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=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c218e

Tanggapan sampel:

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"
    }
}

Kode kesalahan

Kode kesalahan

Status HTTP

Deskripsi

NoSuchBucket

404

Bucket vektor yang ditentukan tidak ada.

AccessDenied

403

Izin untuk melihat informasi bucket ditolak. Hanya pemilik bucket yang dapat melihat informasi bucket.

InvalidVectorBucketName

400

Nama bucket vektor tidak mengikuti konvensi penamaan.