Mendukung pengguna dalam menentukan file sendiri (seperti JAR, PY, arsip, atau file) untuk membuat file resource Data Development.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
ID ruang kerja DataWorks. Anda dapat masuk ke Konsol DataWorks, membuka halaman konfigurasi ruang kerja, dan memperoleh ID ruang kerja. Parameter ini diperlukan untuk mengidentifikasi ruang kerja DataWorks untuk pemanggilan API ini. |
10000 |
| FileFolderPath |
string |
Yes |
Jalur file. |
Business_process/First_Business_Process/MaxCompute/Folder_1/Folder_2 |
| FileName |
string |
Yes |
Nama file. |
Filename |
| FileType |
integer |
Yes |
Tipe kode file. Tipe file yang berbeda sesuai dengan tipe kode yang berbeda. Untuk informasi selengkapnya, lihat Tipe Node DataWorks. |
10 |
| FileDescription |
string |
No |
Deskripsi file. |
This is a description |
| Owner |
string |
No |
ID Pengguna Alibaba Cloud pemilik file. Jika parameter ini kosong, ID Pengguna Alibaba Cloud pemanggil akan digunakan secara default. |
1000000000001 |
| Content |
string |
No |
Konten kode file. Format kode bervariasi tergantung pada tipe kode (fileType). Anda dapat mencari Pekerjaan dengan tipe yang sesuai di Pusat Operasi, mengklik kanan, dan memilih Lihat Kode untuk memeriksa format kode spesifik. |
SHOW TABLES; |
| ResourceFile |
string |
No |
URL OSS untuk unggahan file yang disediakan oleh POP. |
http://bucketname1.oss-cn-shanghai.aliyuncs.com/example |
| OriginResourceName |
string |
Yes |
Nama file resource asli. |
origin_file_name.sql |
| UploadMode |
boolean |
No |
Mode unggah untuk file resource. Parameter ini saat ini hanya berlaku untuk file tipe File di MaxCompute. Nilai valid:
|
false |
| RegisterToCalcEngine |
boolean |
Yes |
Apakah akan menyinkronkan dan mengunggah resource ke Mesin komputasi. |
false |
| StorageURL |
string |
No |
Jalur Penyimpanan file resource pada Mesin komputasi. Bidang ini saat ini hanya digunakan oleh EMR dan CDH. Format EMR adalah [osshdfs]://path/to/objek, dan untuk CDH, nilai default harus /user/admin/lib. |
oss://oss-cn-shanghai.aliyuncs.com/emr-test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Data |
integer |
The ID of the file after successful creation. |
1000001 |
| RequestId |
string |
The unique ID of this request. If an error occurs, you can use this ID to troubleshoot the issue. |
0000-ABCD-EFG |
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.