You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Data transformation API
ModifyETLTask
Copy page
Download PDF
ModifyETLTask
Call the ModifyETLTask API to update the specified data transformation task.​
Request instructions​
  • Request method: PUT​
  • Request URL: https://{tls-endpoint}/ModifyETLTask​
Request parameters​
The table below lists only the unique request parameters for this API and some common parameters. For more details, see Common parameters.​
Body​
​
Parameter​
Type​
Required​
Example value​
Description​
Description​
String​
No​
This is a test project​
Description of the data transformation task.​
  • Does not support <> , ' , \ , \\.​
  • Length must be between 0 and 64 characters.​
Name​
String​
No​
etl-task-name​
Processing task name.​
Script​
String​
No​
f_set("key","value")​
Processing rules.​
TargetResources​
Array of TargetResources​
No​
/​
Displays information related to the output target.​
TaskId​
String​
Yes​
4a9bd4bd-53f1-43ff-b88a-64ee1be5****​
Processing task ID.​
​
TargetResources​
​
Parameter​
Type​
Required​
Example value​
Description​
Alias​
String​
Yes​
test​
Define a custom name for the output target. This name should be used when referring to the output target in data transformation rules.​
TopicId​
String​
Yes​
4a9bd4bd-53f1-43ff-b88a-64ee1be5****​
Log topic for storing transformed logs.​
Region​
String​
Yes​
cn-beijing​
The region of the log topic for storing processed logs.​
RoleTrn​
String​
No​
trn:iam::2100000001:role/TLSETLAccessForUserA​
Name for cross-account authorized role.​
You can log in to the IAM console and click the corresponding role name in Role Management to view the Basic Information section for the Role TRN.​
​
Return parameters​
This endpoint does not have specific return parameters. For more information, see Return structure.​
Sample request​
​
PUT https://{tls-endpoint}/ModifyETLTask HTTP/1.1​
Content-Type: application/json​
{​
"TaskId": "063e66a3-7764-4bdc-****-709a2f4219b4",​
"Script": "f_set(\"aaaa\", 'aaaa', \"key2\", 'sssss', mode=\"overwrite\")",​
"Name": "asdfaf",​
"Description": "This is a test project",​
"TargetResources": [​
{​
"Alias": "asdfadf",​
"TopicId": "a4d5dd28-07a*****8d2f-19080e36e579",​
"Region": "cn-beijing"​
}​
]​
}​
​
Sample response​
​
HTTP/1.1 200 OK​
Content-Type: application/json; charset=utf-8​
​
Error Code​
You can visit Public error codes for more details about error codes.​
Last updated: 2025.10.28 18:42:02