OSS Tables içinde Apache Iceberg tablolarını depolamak ve yönetmek için bir Tablo Paketi oluşturur.
Kullanım notları
Tablo Paketi, OSS Tables için en üst düzey kaynak kapsayıcısıdır. Apache Iceberg formatındaki tabloları depolar ve yönetir. Bir Tablo Paketi üç seviyeli bir hiyerarşi kullanır: Tablo Paketi > ad alanı > tablo.
Bu işlemi çağırdığınızda:
Tek bir Alibaba Cloud hesabı, tek bir bölgede en fazla 10 Tablo Paketi oluşturabilir.
Bir Tablo Paketi adı, aynı Alibaba Cloud hesabı ve bölge içinde benzersiz olmalıdır.
İzinler
|
API |
Action |
Description |
|
CreateTableBucket |
oss:CreateTableBucket |
Bir Tablo Paketi oluşturmak için gereklidir. |
|
oss:PutTableBucketEncryption |
encryptionConfiguration parametresini belirtirseniz gereklidir. |
İstek sözdizimi
PUT /buckets HTTP/1.1
Content-type: application/json
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
{
"encryptionConfiguration": {
"kmsKeyArn": "string",
"sseAlgorithm": "string"
},
"name": "string"
}
İstek parametreleri
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Şifreleme algoritması. Yalnızca AES256 desteklenir. Üst düğüm: encryptionConfiguration |
|
|
|
|
|
KMS anahtar ARN'si. Bu parametre boş bırakılmalıdır. Üst düğüm: encryptionConfiguration |
Yanıt parametreleri
|
|
|
|
|
|
|
|
|
|
Örnekler
İstek örneği
AES256 sunucu tarafı şifrelemesiyle my-table-bucket adlı bir Tablo Paketi oluşturur.
PUT /buckets HTTP/1.1
Content-type: application/json
Host: cn-hangzhou.oss-tables.aliyuncs.com
Date: GMT Date
Authorization: OSS4-HMAC-SHA256 Credential=LTAI********************/20250417/cn-hangzhou/osstables/aliyun_v4_request,Signature=a7c3554c729d71929e0b84489addee6b2e8d5cb48595adfc51868c299c0c****
{
"name": "my-table-bucket",
"encryptionConfiguration": {
"sseAlgorithm": "AES256"
}
}
Yanıt örneği
HTTP/1.1 200 OK
Server: AliyunOSS
x-oss-request-id: 5C06A3B67B8B5A3DA422****
x-oss-server-time: 3
Content-Type: application/json
{
"arn": "acs:osstables:cn-hangzhou:1234567890:bucket/my-table-bucket"
}
SDK'lar
Aşağıdaki SDK'lar bu işlemi destekler:
ossutil CLI
ossutil eşdeğeri create-table-bucket komutudur.
Hata kodları
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|