Queries the time variables for a specified 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 for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListTaskFlowTimeVariables

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

DagId Long Yes 11****

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

Tid Long No 3***

The ID of the tenant.

Note To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant.

Response parameters

Parameter Type Example Description
RequestId String EC12A3BE-149F-5365-AF33-12CC8C963923

The ID of the request.

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.
TimeVariables Array of timeVariable

The time variables for the task flow.

timeVariable
Name String time_test

The name of the time variable.

Pattern String 2018-09-26|+7h

The format of the time variable.

Examples

Sample requests

 
 
&Common request parameters

Sample success responses

XML format

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

<ListTaskFlowTimeVariablesResponse>
    <RequestId>EC12A3BE-149F-5365-AF33-12CC8C963923</RequestId>
    <TimeVariables>
        <TimeVariable>
            <Pattern>2018-09-26|+7h</Pattern>
            <Name>test</Name>
        </TimeVariable>
        <TimeVariable>
            <Pattern>yyyy-MM-dd|+0d</Pattern>
            <Name>test01</Name>
        </TimeVariable>
    </TimeVariables>
    <Success>true</Success>
</ListTaskFlowTimeVariablesResponse>

JSON format

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

{
  "RequestId" : "EC12A3BE-149F-5365-AF33-12CC8C963923",
  "TimeVariables" : {
    "TimeVariable" : [ {
      "Pattern" : "2018-09-26|+7h",
      "Name" : "test"
    }, {
      "Pattern" : "yyyy-MM-dd|+0d",
      "Name" : "test01"
    } ]
  },
  "Success" : true
}

Error codes

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