tos_presigned_url
Generate pre-signed URLs for secure, time-limited access to TOS storage objects using specified HTTP methods and expiration periods.
Instructions
生成预签名 URL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket_name | Yes | 存储桶名称 | |
| expires | No | 过期时间(秒) | |
| method | No | HTTP方法 | GET |
| object_key | Yes | 对象键名 |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"description": "存储桶名称",
"type": "string"
},
"expires": {
"default": 3600,
"description": "过期时间(秒)",
"type": "integer"
},
"method": {
"default": "GET",
"description": "HTTP方法",
"enum": [
"GET",
"PUT",
"POST",
"DELETE"
],
"type": "string"
},
"object_key": {
"description": "对象键名",
"type": "string"
}
},
"required": [
"bucket_name",
"object_key"
],
"type": "object"
}