Transfers the ownership of a task flow in a workspace of Data Management (DMS).
Usage notes:
- If you call this operation to transfer the ownership of a published task flow, the ownership transfer does not take effect.
- You can call the ReDeployLhDagVersion operation to redeploy a published version of a task flow.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ChangeLhDagOwner |
The operation that you want to perform. Set the value to ChangeLhDagOwner. |
| DagId | Long | Yes | 9*** |
The ID of the task flow. You can call the ListLhTaskFlowAndScenario operation to obtain the task flow ID. |
| OwnerUserId | Long | Yes | 50**** |
The ID of the user to be specified as the new owner of the task flow. You can call the ListUsers or GetUser operation to obtain the user ID. |
| Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. |
| RegionId | String | No | cn-hangzhou |
The ID of the region in which DMS is activated. For more information, see RegionID parameter. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 9997630E-1993-5E6D-9DF1-4EFEE755FE31 |
The ID of the request. |
| ErrorCode | String | 403 |
The error code returned if the request fails. |
| ErrorMessage | String | UnknownError |
The error message returned if the request fails. |
| Success | Boolean | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=ChangeLhDagOwner
&DagId=9***
&OwnerUserId=50****
&Tid=3***
&Common request parameters
Sample responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ChangeLhDagOwnerResponse>
<RequestId>9997630E-1993-5E6D-9DF1-4EFEE755FE31</RequestId>
<Success>true</Success>
</ChangeLhDagOwnerResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9997630E-1993-5E6D-9DF1-4EFEE755FE31",
"Success" : true
}
Error code
For a list of error codes, visit the Error Center.