RemoveTaskInstanceDependencies
Removes multiple upstream dependencies of a task instance in batches.
Operation description
DataWorks Basic Edition or higher is required.
The caller must have the remove upstream dependencies of instances permission in the workspace to which the target instance belongs. First, call ListTaskInstances to obtain the ID of the target instance from PagingInfo.TaskInstances[].Id. Then, pass this ID to ListUpstreamTaskInstances to obtain the IDs of the direct upstream instances to remove from PagingInfo.UpstreamTaskInstances[].TaskInstance.Id, and specify them in UpstreamTaskInstanceIds.
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 ID of the downstream task instance from which you want to remove upstream dependencies. You can obtain the ID from PagingInfo.TaskInstances[].Id in the response of ListTaskInstances. |
1234 |
| UpstreamTaskInstanceIds |
array |
No |
The IDs of the upstream task instances from which you want to remove dependencies. You can specify up to 100 IDs at a time. You can obtain the IDs from PagingInfo.UpstreamTaskInstances[].TaskInstance.Id in the response of ListUpstreamTaskInstances. |
|
|
integer |
No |
The task instance ID. |
1234 |
|
| Comment |
string |
No |
The comment. |
this is a comment |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot 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\n",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.