Membuat sebuah komponen.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:CreateComponent |
create |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
ID ruang kerja DataWorks tempat sumber data berada. Anda dapat memanggil operasi ListProjects untuk mendapatkan ID ruang kerja. |
10000 |
| Spec |
string |
Yes |
Informasi FlowSpec yang menjelaskan alur kerja. Untuk informasi lebih lanjut tentang spesifikasi, lihat FlowSpec. |
{ "kind": "Komponen", "name": "com1", "spec": { "components": [ { "name": "test11", "id": "1234", "owner": "1234456", "description": "", "script": { "language": "odps-sql", "path": "test11", "content": "select '@@{bizdate}', '@@{my_input_table}'", "runtime": { "command": "SQL_COMPONENT" } }, "inputs": [ { "name": "bizdate", "type": "string" }, { "name": "my_input_table", "type": "string" } ], "outputs": [ { "name": "my_output_table1", "type": "string" } ] } ] } } |
| ClientToken |
string |
No |
Bidang yang dicadangkan. |
1AFAE64E-D1BE-432B-A9**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
adssd**** |
| ComponentId |
string |
ID komponen. Untuk informasi tentang cara mendapatkan ID komponen, lihat ListComponents. |
123123123123123 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "adssd****",
"ComponentId": "123123123123123"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.