Queries the configurations, including time variables, of a specified task node based on the task node ID.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | The ID of the tenant. Note
: To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant.
| 3*** |
NodeId | long | Yes | The ID of the task node. You can call the GetTaskInstanceRelation operation to query the node ID. | 51*** |
Response parameters
The value of TimeVariables is a JSON string. The following section provides an example of the TimeVariables value and describes the variables:
{
"variables":[
{
"name":"var",// The name of the variable.
/*
Variable format
As shown in the example, the date can have one or more offsets, including minutes (m), hours (h), days (d), weeks (w), months (M), or years (y). The offsets are optional, and you can specify the offsets in a different order than described here.
*/
"pattern":"yyyy-MM-dd|+0d"
},
{
"name":"test",
"pattern":"yyyy-MM-dd|+0d"
}
]
}
Examples
Sample success responses
JSON
format
{
"RequestId": "7838266C-E17B-58F4-B072-4DC356B58258",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Task": {
"DagId": 7321,
"NodeName": "Cross-database Spark SQL-1\n",
"NodeType": "SPARK_SQL",
"NodeContent": "{\\\"dbList\\\":[{\\\"instanceId\\\":177****}\" }",
"TimeVariables": "{\\\"variables\\\":[{\\\"name\\\":\\\"Today\\\",\\\"pattern\\\":\\\"yyyy-MM-dd|+1d\\\"}]}",
"NodeConfig": "{\\\\\"dbId\\\\\":39\\*\\*\\*\\*,\\\\\"dbType\\\\\":\\\\\"mysql\\\\\",\\\\\"locale\\\\\":\\\\\"zh\\\\\",\\\\\"sql\\\\\":\\\\\"/\\* Make sure that the following SQL statements meet your business requirements before submitting the SQL statements for execution. \\*/\\\\\\n\\\\\\nCREATE TABLE IF NOT EXISTS \\`momo_weekGather\\` (\\\\\\n\\\\\\t\\`id\\` bigint AUTO_INCREMENT DEFAULT '0',\\\\\\n\\\\\\t\\`age\\` bit NULL,\\\\\\n\\\\\\t\\`action\\` varchar(150) NULL,\\\\\\n\\\\\\t\\`elapse_time\\` datetime NULL,\\\\\\n\\\\\\tPRIMARY KEY (\\`id\\`)\\\\\\n) ENGINE=InnoDB\\\\\\nDEFAULT CHARACTER SET=utf8;\\\\\"}\n",
"NodeOutput": "{ \"outputs\":[ \"extractMethod\":\"json\" , \"variableName\":\"var\", \"description\":\"demo desc\" } ] }",
"GraphParam": "{\"{\\\"x\\\":0,\\\"y\\\":0,\\\"layoutType\\\":\\\"Horizontal\\\"}\", \"id\": 51***}"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history