Mengambil informasi tugas untuk mengunggah lampiran.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetUserUploadFileJob |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobKey |
string |
Yes |
JobKey tugas unggah lampiran. Anda dapat memperoleh parameter ini dengan memanggil operasi CreateUploadFileJob atau CreateUploadOSSFileJob. |
65254a49100e |
| Tid |
integer |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
BDEFE9F2-B3B4-42D0-83AE-ECF9FC067DCD |
| Success |
boolean |
Apakah permintaan berhasil. |
true |
| ErrorMessage |
string |
Paket kesalahan. |
UnknownError |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| UploadFileJobDetail |
object |
Detail tugas unggah lampiran. |
|
| JobKey |
string |
JobKey tugas unggah lampiran. |
65254a4c1614235217749100e |
| FileName |
string |
Nama file. |
test.sql |
| FileSize |
integer |
Ukuran file, dalam byte. |
2968269 |
| FileSource |
string |
Tujuan unggah file. Nilai valid:
|
datacorrect |
| UploadType |
string |
Tipe tugas unggah lampiran. Nilai valid:
|
URL |
| UploadURL |
string |
URL lampiran yang diunggah. Catatan
Parameter ini ditampilkan ketika parameter UploadType diatur ke URL. |
http://xxxx/test.sql |
| UploadOSSParam |
object |
Informasi OSS lampiran yang diunggah. Catatan
Parameter ini ditampilkan ketika parameter UploadType diatur ke OSS. |
|
| Endpoint |
string |
The endpoint of the OSS bucket. |
http://oss-cn-hangzhou.aliyuncs.com |
| BucketName |
string |
The name of the OSS bucket. |
test_bucket |
| ObjectName |
string |
The name of the OSS object. |
test.sql |
| UploadedSize |
integer |
Ukuran yang telah diunggah, dalam byte. |
2968269 |
| JobStatus |
string |
Status tugas unggah lampiran. Nilai valid:
|
SUCCESS |
| JobStatusDesc |
string |
Deskripsi status tugas. |
success |
| AttachmentKey |
string |
Kunci lampiran yang dikembalikan setelah lampiran diunggah. Anda dapat menggunakan kunci ini saat membuat tiket. |
upload_3c7edea3-e4c3-4403-857d-737043036f69_test.sql |
Contoh
Respons sukses
JSONformat
{
"RequestId": "BDEFE9F2-B3B4-42D0-83AE-ECF9FC067DCD",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"UploadFileJobDetail": {
"JobKey": "65254a4c1614235217749100e",
"FileName": "test.sql",
"FileSize": 2968269,
"FileSource": "datacorrect",
"UploadType": "URL",
"UploadURL": "http://xxxx/test.sql",
"UploadOSSParam": {
"Endpoint": "http://oss-cn-hangzhou.aliyuncs.com",
"BucketName": "test_bucket",
"ObjectName": "test.sql"
},
"UploadedSize": 2968269,
"JobStatus": "SUCCESS",
"JobStatusDesc": "success",
"AttachmentKey": "upload_3c7edea3-e4c3-4403-857d-737043036f69_test.sql"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.