Obtains upload URLs and parameters for submitting files for detection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateBatchUploadURL |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Md5List |
array |
Yes |
File identifiers. Only MD5 hash values are supported. |
|
|
string |
No |
File identifiers. Only MD5 hash values are supported. |
a479262288e03f6a90dc282ea3****** |
|
| Type |
integer |
Yes |
The file type. Valid values:
Note
If the file type is unknown, set this parameter to 0. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| RequestId |
string |
|
DA62490B-7883-5EB4-8601-F2D1D9****** |
| UploadUrlList |
array<object> |
The upload parameters for each file. |
|
|
array<object> |
|||
| PublicUrl |
string |
The public upload URL. |
http://example.com |
| InternalUrl |
string |
The internal upload URL. |
http://example.com |
| Expire |
string |
The expiration timestamp of the upload parameters. Unit: milliseconds. |
1658562101370 |
| Context |
object |
The signature information. |
|
| AccessId |
string |
The AccessKey ID for accessing the OSS bucket. |
yourAccessKeyID |
| Policy |
string |
The upload policy that specifies constraints such as file size limits. |
eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC**** |
| Signature |
string |
The signature for the file upload. |
wDhPgVdnY/bkKFYcYFl+4crl**** |
| OssKey |
string |
The OSS object key assigned to the uploaded file. |
1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8**** |
| FileExist |
boolean |
Whether the file already exists in the cloud. Valid values:
|
false |
| Md5 |
string |
The MD5 hash of the file. |
2f8dc248a0fbb96c69e45acad2****** |
Examples
Success response
JSON format
{
"RequestId": "DA62490B-7883-5EB4-8601-F2D1D9******",
"UploadUrlList": [
{
"PublicUrl": "http://example.com",
"InternalUrl": "http://example.com",
"Expire": "1658562101370",
"Context": {
"AccessId": "yourAccessKeyID",
"Policy": "eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC****",
"Signature": "wDhPgVdnY/bkKFYcYFl+4crl****",
"OssKey": "1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8****"
},
"FileExist": false,
"Md5": "2f8dc248a0fbb96c69e45acad2******"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.