获取指定的工作流的详细信息。
接口说明
需要购买 DataWorks 基础版及以上版本才能使用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Id | long | 是 | 工作流的唯一标识符。 | 1234 |
EnvType | string | 否 | 项目环境。
| Prod |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"Workflow": {
"Id": 1234,
"ProjectId": 100,
"EnvType": "Prod",
"Owner": "1000",
"Name": "Workflow",
"Description": "Test workflow",
"Trigger": {
"Type": "Scheduler",
"Recurrence": "Normal",
"Cron": "00 00 00 * * ?",
"StartTime": "1970-01-01 00:00:00",
"EndTime": "1970-01-01 00:00:00"
},
"Dependencies": [
{
"Type": "Normal",
"UpstreamOutput": "pre.odps_sql_demo_0",
"UpstreamTaskId": 1234
}
],
"Parameters": "para1=$bizdate para2=$[yyyymmdd] ",
"Tasks": [
{
"Id": 1234,
"ProjectId": 100,
"EnvType": "Prod",
"Owner": "1000",
"Name": "SQL node",
"Description": "Test",
"WorkflowId": 1234,
"Type": "ODPS_SQL",
"BaselineId": 1234,
"Priority": 1,
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RerunTimes": 3,
"RerunInterval": 60,
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"DataSource": {
"Name": "mysql_test"
},
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000",
"TriggerRecurrence": "Normal",
"ClientUniqueCode": "Task_0bc5213917368545132902xxxxxxxx"
}
],
"Outputs": {
"TaskOutputs": [
{
"Output": "pre.odps_sql_demo_0"
}
]
},
"Tags": [
{
"Key": "key1",
"Value": "value1"
}
],
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000",
"ClientUniqueCode": "Workflow_0bc5213917368545132902xxxxxxxx"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史