Mendapatkan parameter unggah file secara batch.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateBatchUploadURL |
none |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Md5List |
array |
Yes |
Daftar MD5 file. |
|
|
string |
No |
MD5 file. |
a479262288e03f6a90dc282ea3****** |
|
| Type |
integer |
Yes |
Jenis file. Nilai valid:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan, yaitu pengidentifikasi unik yang dihasilkan Alibaba Cloud untuk permintaan ini. Dapat digunakan untuk pemecahan masalah dan pelacakan isu. |
DA62490B-7883-5EB4-8601-F2D1D9****** |
| UploadUrlList |
array<object> |
Parameter unggah file. |
|
|
array<object> |
Parameter unggah file. |
||
| PublicUrl |
string |
Titik akhir publik dari URL unggah file. |
http://example.com |
| InternalUrl |
string |
Titik akhir internal dari URL unggah file. |
http://example.com |
| Expire |
string |
Timestamp saat parameter unggah kedaluwarsa. Unit: milidetik. |
1658562101370 |
| Context |
object |
Konfigurasi file yang diunggah. |
|
| AccessId |
string |
The AccessKey ID that is used to access the OSS bucket. |
yourAccessKeyID |
| Policy |
string |
The policy that poses limits on file upload. For example, the policy can limit the size of the file. |
eyJleHBpcmF0aW9uIjoiMjAyMi0wNy0yM1QxMDo1ODoxMC**** |
| Signature |
string |
The signature that is used to upload the file. |
wDhPgVdnY/bkKFYcYFl+4crl**** |
| OssKey |
string |
The key of the file that is used after the file is uploaded to the OSS bucket. |
1/2022/06/23/15/41/16559701077444693a0c6-33b2-4cc2-a99f-9f38b8b8**** |
| FileExist |
boolean |
Apakah file sudah ada. Nilai valid:
|
false |
| Md5 |
string |
MD5 file. |
2f8dc248a0fbb96c69e45acad2****** |
Contoh
Respons sukses
JSONformat
{
"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******"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.