Publishes and deploys a specified task flow.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | PublishAndDeployTaskFlow |
The operation that you want to perform. Set the value to PublishAndDeployTaskFlow. |
| Tid | Long | No | 3*** |
The ID of the tenant. Note The ID of the tenant is displayed when you move the pointer over the profile picture
in the upper-right corner of the DMS console. For more information, see the View information about the current tenant section of the Manage DMS tenants topic.
|
| DagId | Long | Yes | 7*** |
The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the task flow ID. |
| VersionComments | String | No | vc_test |
The description of the version. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 64E26249-B61F-51C6-B6DF-47EFF50128CC |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
| ErrorCode | String | UnknownError |
The error code returned if the request failed. |
| ErrorMessage | String | Unknown server error |
The error message returned if the request failed. |
| Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
| DeployId | Long | 12** |
The ID of the deployment record. |
Examples
Sample requests
tp(s)://dms-enterprise.aliyuncs.com/?Action=PublishAndDeployTaskFlow
&Tid=3***
&DagId=7***
&VersionComments=vc_test
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<PublishAndDeployTaskFlowResponse>
<RequestId>64E26249-B61F-51C6-B6DF-47EFF50128CC</RequestId>
<ErrorCode>UnknownError</ErrorCode>
<ErrorMessage>Unknown server error</ErrorMessage>
<Success>true</Success>
</PublishAndDeployTaskFlowResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "64E26249-B61F-51C6-B6DF-47EFF50128CC",
"ErrorCode" : "UnknownError",
"ErrorMessage" : "Unknown server error",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.