Updates a specified node. The modifications are synchronized to DataStudio, where a new saved version is created.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The node ID. |
1234 |
| ClientUniqueCode |
string |
No |
The client unique code of the node, used to uniquely identify a node. This code is used to implement asynchronous operations and idempotence. If not specified during creation, the system automatically generates one, and the code is uniquely bound to the resource ID. When updating or deleting a resource, if this parameter is specified, it must be consistent with the client unique code used during creation. |
Task_0bc5213917368545132902xxxxxxxx |
| EnvType |
string |
No |
The project environment. Valid values:
|
Prod |
| Name |
string |
No |
The name. |
SQL node |
| Description |
string |
No |
The description. |
test |
| Owner |
string |
No |
The account ID of the node owner. |
1000 |
| InstanceMode |
string |
No |
The instance generation mode. Valid values:
|
T+1 |
| Timeout |
integer |
No |
The node execution timeout period, in seconds. The value must be greater than 3600. |
3600 |
| RerunMode |
string |
No |
Specifies whether the node can be rerun. Valid values:
|
AllAllowed |
| RerunTimes |
integer |
No |
The number of retries. This parameter takes effect when the node is configured to allow reruns. |
3 |
| RerunInterval |
integer |
No |
The retry time interval, in milliseconds. The value cannot exceed 1800000. |
60000 |
| Script |
object |
No |
The script information. |
|
Content
deprecated
|
string |
No |
The script content. |
echo "helloWorld" |
| Parameters |
string |
No |
The list of script parameters. |
para1=$bizdate |
| Trigger |
object |
No |
The node trigger method. |
|
| Type |
string |
No |
The trigger type. Valid values:
|
Scheduler |
| Recurrence |
string |
No |
The run mode when triggered. This parameter takes effect when Type is set to Scheduler. Valid values:
|
Normal |
| Cron |
string |
No |
The cron expression. This parameter takes effect when Type is set to Scheduler. |
00 00 00 * * ? |
| StartTime |
string |
No |
The effective period of the epoch trigger. This parameter takes effect when Type is set to Scheduler. Format: |
1970-01-01 00:00:00 |
| EndTime |
string |
No |
The expiration time of the periodic trigger. This parameter takes effect when Type is set to Scheduler. Format: |
9999-01-01 00:00:00 |
| CycleType |
string |
No |
The epoch type. This parameter takes effect when Type is set to Scheduler and the cron expression specifies timed scheduling at a specific hour. Default value: Daily. Valid values:
|
Daily |
| RuntimeResource |
object |
No |
The environment configuration, such as resource group information. |
|
| ResourceGroupId |
string |
No |
The identifier of the schedule resource group configured for the node. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
No |
The image ID configured for the node. |
i-xxxxxx |
| Cu |
string |
No |
The CU consumption configured for the node. |
0.25 |
| DataSource |
object |
No |
The associated data source information. |
|
| Name |
string |
No |
The data source name. |
odps_test |
| Inputs |
object |
No |
The input information. |
|
| Variables |
array<object> |
No |
The list of variable definitions. |
|
|
object |
No |
|||
| Type |
string |
Yes |
The type. Valid values:
|
Constant |
| Value |
string |
No |
The variable value. |
value1 |
| Name |
string |
No |
The variable name. |
key1 |
| Outputs |
object |
No |
The output information. |
|
| TaskOutputs |
array<object> |
No |
The list of node output definitions. |
|
|
object |
No |
|||
| Output |
string |
No |
The output identifier. |
pre.odps_sql_demo_0 |
| Variables |
array<object> |
No |
The list of variable definitions. |
|
|
object |
No |
|||
| Type |
string |
Yes |
The type. Valid values:
|
Constant |
| Value |
string |
No |
The variable value. |
value1 |
| Name |
string |
No |
The variable name. |
key1 |
| Dependencies |
array<object> |
No |
The dependency information. |
|
|
object |
No |
|||
| Type |
string |
Yes |
The dependency type. Valid values:
|
Normal |
| UpstreamOutput |
string |
No |
The output identifier of the upstream node. This field is returned when the dependency type is same-cycle dependency and input content is configured. |
pre.odps_sql_demo_0 |
| UpstreamTaskId |
integer |
No |
The ID of the upstream node. This field is returned when the dependency type is cross-cycle dependency on other nodes, or same-cycle dependency without input content configured. It is not returned in other cases. |
1234 |
| Tags |
array<object> |
No |
The list of node tags. |
|
|
object |
No |
|||
| Value |
string |
No |
The tag value. |
value1 |
| Key |
string |
Yes |
The tag key. |
key1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, used for locating logs and troubleshooting issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| Success |
boolean |
Indicates whether the operation was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.