指定されたタスクフロー内のタスクを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
dms:ListTasksInTaskFlow |
list |
*All resources.
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Tid |
integer |
任意 |
テナントの ID。 説明
テナントの ID を表示するには、データ管理 (DMS) コンソールの右上隅にあるプロフィール画像にポインターを合わせます。詳細については、「現在のテナントに関する情報の表示」を参照してください。 |
3*** |
| DagId |
integer |
必須 |
タスクフローの ID。 ListTaskFlow 操作または ListLhTaskFlowAndScenario 操作を呼び出して、タスクフロー ID を照会できます。 |
32*** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエストの ID。この ID を使用してログを特定し、問題のトラブルシューティングを行えます。 |
8B36B063-6B7D-5595-9FCF-3844B7B7ACD4 |
| ErrorCode |
string |
リクエストが失敗した場合に返されるエラーコード。 |
UnknownError |
| ErrorMessage |
string |
リクエストが失敗した場合に返されるエラーメッセージ。 |
The task flow does not exist or you do not have the required permissions. |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| Tasks |
object |
||
| Task |
array<object> |
タスクフロー内のタスク。 |
|
|
object |
タスクの詳細。 |
||
| NodeName |
string |
ノードの名前。 |
Cross-Database Spark SQL-1 |
| NodeType |
string |
ノードのタイプ。このパラメーターの有効な値の詳細については、「NodeType パラメーター」を参照してください。 |
SPARK_SQL |
| NodeContent |
string |
ノードの構成。 |
{ "dbId":123456, // the database ID "sql":"/* Write the SQL statement by using the SQL syntax of the database selected for the current node */", // the SQL statement "dbType":"polardb" // the database type } |
| TimeVariables |
string |
ノードに構成されている時間変数。 |
{ "variables":[ // "variables" is a fixed value { "name":"var", // name specifies the variable name "pattern":"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y" // see the description that follows } ] } |
| NodeConfig |
string |
ノードの詳細設定。 |
{ "rerun":{ // required and fixed "rerunEnable":true, // whether to enable rerun "rerunCount":1, // the number of reruns "rerunInterval":10 // the rerun interval } } |
| NodeOutput |
string |
タスクの出力変数。 |
{ "outputs":[ { /* Variable extraction settings { "row":0, // row. -1 indicates all rows "column":-1, // column. -1 indicates all columns /* Delimiter When all rows or all columns are selected, you must specify a connector. The variable return value is a string. */ "combiner":"," } */ "extractMethod":"{\"row\":0,\"column\":-1,\"combiner\":\",\"}", "variableName":"var", // the variable name "description":"For demo" // the variable description } ] } |
| GraphParam |
string |
有向非巡回グラフ (DAG) 上のノードの位置。 |
{\"x\":435,\"y\":192,\"layoutType\":\"Horizontal\"} |
| NodeId |
string |
ノードの ID。 |
92*** |
例
成功レスポンス
JSONJSON
{
"RequestId": "8B36B063-6B7D-5595-9FCF-3844B7B7ACD4",
"ErrorCode": "UnknownError",
"ErrorMessage": "The task flow does not exist or you do not have permission",
"Success": true,
"Tasks": {
"Task": [
{
"NodeName": "Cross-Database Spark SQL-1",
"NodeType": "SPARK_SQL",
"NodeContent": "{ \"dbId\":123456, // the database ID \"sql\":\"/* Write the SQL statement by using the SQL syntax of the database selected for the current node */\", // the SQL statement \"dbType\":\"polardb\" // the database type }",
"TimeVariables": "{ \"variables\":[ // \"variables\" is a fixed value { \"name\":\"var\", // name specifies the variable name \"pattern\":\"yyyy-MM-dd|+0m+0h-2d+0w+0M+1y\" // see the description that follows } ] }",
"NodeConfig": "{ \"rerun\":{ // required and fixed \"rerunEnable\":true, // whether to enable rerun \"rerunCount\":1, // the number of reruns \"rerunInterval\":10 // the rerun interval } }",
"NodeOutput": "{ \"outputs\":[ { /* Variable extraction settings { \"row\":0, // row. -1 indicates all rows \"column\":-1, // column. -1 indicates all columns /* Delimiter When all rows or all columns are selected, you must specify a connector. The variable return value is a string. */ \"combiner\":\",\" } */ \"extractMethod\":\"{\\\"row\\\":0,\\\"column\\\":-1,\\\"combiner\\\":\\\",\\\"}\", \"variableName\":\"var\", // the variable name \"description\":\"For demo\" // the variable description } ] }",
"GraphParam": "{\\\"x\\\":435,\\\"y\\\":192,\\\"layoutType\\\":\\\"Horizontal\\\"}",
"NodeId": "92***"
}
]
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。