Queries the constants of a task flow.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListTaskFlowConstants

The operation that you want to perform. Set the value to ListTaskFlowConstants.

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 3****

The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the task flow ID.

Response parameters

Parameter Type Example Description
RequestId String 028BF827-3801-5869-8548-F4A039256304

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 UnknownError

The error message returned if the request failed.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
DagConstants Array of DagConstant

The list of constant key-value pairs of the task flow.

DagConstant
Key String example

The constant key.

Value String 0

The constant value.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=ListTaskFlowConstants
&DagId=3****
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListTaskFlowConstantsResponse>
    <RequestId>028BF827-3801-5869-8548-F4A039256304</RequestId>
    <Success>true</Success>
    <DagConstants>
        <Key>example</Key>
        <Value>0</Value>
    </DagConstants>
</ListTaskFlowConstantsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "028BF827-3801-5869-8548-F4A039256304",
  "Success" : true,
  "DagConstants" : [ {
    "Key" : "example",
    "Value" : "0"
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.