调用ListTaskFlowTimeVariables接口,获取任务流时间变量列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String 是 ListTaskFlowTimeVariables

系统规定参数。取值:ListTaskFlowTimeVariables。

DagId Long 是 11****

任务流ID,可通过调用ListTaskFlow或ListLhTaskFlowAndScenario接口获取该参数的值。

Tid Long 否 3***

租户ID。

说明 取自系统右上角头像处悬停展示的租户ID信息,详情请参见查看租户信息。

返回数据

名称 类型 示例值 描述
RequestId String EC12A3BE-149F-5365-AF33-12CC8C963923

请求ID。

ErrorCode String UnknownError

错误码。

ErrorMessage String UnknownError

调用失败时,返回的错误信息。

Success Boolean true

请求是否成功,返回值如下:

  • true:请求成功。
  • false:请求失败。
TimeVariables Array of timeVariable

任务流时间变量。

timeVariable
Name String time_test

时间变量名称。

Pattern String 2018-09-26|+7h

时间变量格式。

示例

请求示例

http(s)://dms-enterprise.aliyuncs.com/?Action=ListTaskFlowTimeVariables
&DagId=11****
&公共请求参数

正常返回示例

XML格式

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格式

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
}

错误码

访问错误中心查看更多错误码。