Mendapatkan informasi komponen.
Deskripsi operasi
Anda harus membeli DataWorks Basic Edition atau edisi yang lebih tinggi untuk menggunakan fitur ini.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
No |
ID workspace DataWorks. Anda dapat login ke konsol DataWorks dan masuk ke halaman Workspace untuk meminta ID. Anda harus mengonfigurasi parameter ini atau parameter ProjectIdentifier untuk menentukan workspace DataWorks tempat operasi ini diterapkan. |
10000 |
| ComponentId |
string |
Yes |
ID komponen. |
1112312312312 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
Id dari permintaan |
0000-ABCD-EFG**** |
| Component |
object |
Serialisasi JSON dari modul komponen. |
|
| ComponentId |
string |
ID dari komponen akselerasi dataset. Untuk informasi tentang cara mendapatkan ID komponen, lihat ListComponents. |
43cd873b-235c-44f8-be07-e4d4cf7e73b0 |
| ProjectId |
integer |
ID workspace DataWorks. |
64623 |
| Name |
string |
Parameter |
dim_whse_epet_warehouse_jz_storage_stock_lot_relation_id |
| Owner |
string |
ID dari pemilik tugas. |
207316543660665792 |
| CreateTime |
string |
Waktu pembuatan. |
2017-04-27T05:37:05Z |
| ModifyTime |
string |
Waktu modifikasi (timestamp tingkat milidetik). |
2024-01-26T07:44:21Z |
| Spec |
string |
Informasi FlowSpec untuk workflow ini. Untuk informasi lebih lanjut, lihat FlowSpec. |
{ "kind": "Component", "name": "com1", "spec": { "components": [ { "name": "test11", "id": "8196828925037*****", "owner": "054664", "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" } ] } ] } } |
| Description |
string |
Deskripsi. |
None |
| RegionId |
string |
ID region, seperti ap-southeast-1. ID region secara otomatis diuraikan dari endpoint Anda. |
cn-hangzhou |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0000-ABCD-EFG****",
"Component": {
"ComponentId": "43cd873b-235c-44f8-be07-e4d4cf7e73b0",
"ProjectId": 64623,
"Name": "dim_whse_epet_warehouse_jz_storage_stock_lot_relation_id",
"Owner": "207316543660665792",
"CreateTime": "2017-04-27T05:37:05Z",
"ModifyTime": "2024-01-26T07:44:21Z",
"Spec": "{\n \"kind\": \"Component\",\n \"name\": \"com1\",\n \"spec\": {\n \"components\": [\n {\n \"name\": \"test11\",\n \"id\": \"8196828925037*****\",\n \"owner\": \"054664\",\n \"description\": \"\",\n \"script\": {\n \"language\": \"odps-sql\",\n \"path\": \"test11\",\n \"content\": \"select '@@{bizdate}', '@@{my_input_table}'\",\n \"runtime\": {\n \"command\": \"SQL_COMPONENT\"\n }\n },\n \"inputs\": [\n {\n \"name\": \"bizdate\",\n \"type\": \"string\"\n },\n {\n \"name\": \"my_input_table\",\n \"type\": \"string\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"my_output_table1\",\n \"type\": \"string\"\n }\n ]\n }\n ]\n }\n}",
"Description": "None",
"RegionId": "cn-hangzhou"
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidComponent.NotFound | The specified Component does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.