You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Vector bucket
GetVectorBucketPolicy
Copy page
Download PDF
GetVectorBucketPolicy
Description​
Used to query the policy of a vector bucket.​
Request syntax​
The endpoint must use the bucket endpoint.​
​
POST /GetVectorBucketPolicy HTTP/1.1​
Host: {VectorBucketName}-{AccountID}.tosvectors-cn-beijing.volces.com​
Authorization: authorization string​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
​
{​
"vectorBucketName": "test-vector-bucket"​
}​
​
Request parameters and headers ​
None.​
Request body elements​
​
Field name​
Type​
Required​
Example value​
Description​
vectorBucketName​
String​
Yes​
test-vector-bucket​
Get the name of the vector bucket for the policy.​
​
Response headers​
For common response headers, see Common parameters.​
Response body elements​
If the operation succeeds, the service returns an HTTP 200 response with the following response body elements.​
If the operation fails, it returns an error code defined in the Response code.​
​
Field name​
Type​
Example value​
Description​
policy​
String​
'{​
"Version": "2025-12-01",​
"Statement": [{​
"Effect": "Allow",​
"Principal": [​
"210004xxxx/testuser"​
],​
"Action": [​
"tosvectors:*"​
],​
"Resource": [​
"trn:tosvectors:cn-beijing:11111:bucket/test-vector-bucket"​
]​
}]​
}'​
JSON string defining the policy.​
​
Sample request​
​
POST /GetVectorBucketPolicy HTTP/1.1​
Host: test-vector-bucket-1111.tosvectors-cn-beijing.volces.com​
Authorization: authorization string​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
​
​
{​
"vectorBucketName": "test-vector-bucket"​
}​
​
Sample response​
​
HTTP/1.1 200 OK​
x-tos-id-2: 797014003c90a9b694003c9-b15a995-1vV80n-CVB-cb-tos-1az-front-azd-vectors-2 ​
x-tos-request-id: 797014003c90a9b694003c9-b15a995-1vV80n-CVB-cb-tos-1az-front-azd-vectors-2 ​
Date: Mon, 10 Dec 2025 12:49:14 GMT​
server: TosServer​
Content-Length: 220​
Content-Type: application/json​
​
{​
"Version": "1.0",​
"Statement": [​
{​
"Sid": "unnamed-1765803697469599738",​
"Effect": "Allow",​
"Principal": [​
"*"​
],​
"Action": "tosvectors:ListVectorBuckets",​
"Resource": "trn:tosvectors:cn-beijing:1111:bucket/test-vector-bucket"​
}​
]​
}​
​
​
Last updated: 2026.01.04 14:21:24