Redeploys one of or all the published versions of a task flow.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ReDeployLhDagVersion |
The operation that you want to perform. Set the value to ReDeployLhDagVersion. |
DagId | Long | Yes | 7*** |
The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the ID of the task flow. |
DagVersion | Long | No | 2**** |
The ID of the task flow version. You can call the ListDAGVersions operation to obtain the ID of the task flow version. |
Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the ID of the tenant. |
RegionId | String | No | cn-hangzhou |
The region in which Data Management (DMS) is activated. For more information, see RegionID parameter. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 035C92E0-2EAD-50E5-A6DD-550F5F73D7CE |
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:
|
DeployId | Long | 15990 |
The ID of the deployment record. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=ReDeployLhDagVersion
&DagId=7***
&DagVersion=2****
&Tid=3***
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ReDeployLhDagVersionResponse>
<RequestId>035C92E0-2EAD-50E5-A6DD-550F5F73D7CE</RequestId>
<DeployId>15990</DeployId>
<Success>true</Success>
</ReDeployLhDagVersionResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "035C92E0-2EAD-50E5-A6DD-550F5F73D7CE",
"DeployId" : 15990,
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.