获取待发布的文件版本列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dataworks:* |
list |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectId |
integer |
是 |
DataWorks 工作空间的 ID。您可以登录 DataWorks 控制台,进入工作空间配置页面获取工作空间 ID。 |
12345 |
| BusinessId |
integer |
否 |
业务流程的 ID,您可以调用 ListBusiness 接口,根据名称查询对应业务流程的 ID。 |
100001 |
| SolutionId |
integer |
否 |
解决方案 ID。 |
8065 |
| CommitFrom |
string |
否 |
提交起始日期,格式 yyyy-MM-dd |
2025-01-01 |
| CommitTo |
string |
否 |
提交截止日期(包含),格式 yyyy-MM-dd |
2025-01-31 |
| CommitUserId |
string |
否 |
提交人的用户 ID |
2003**** |
| FileType |
integer |
否 |
文件的代码类型。 不同文件类型其代码不同,详情请参见 DataWorks 节点合集。 您也可以调用 ListFileType 接口,查询文件的代码类型。 |
10 |
| ChangeType |
integer |
否 |
变更类型
|
0 |
| FileIds |
array |
否 |
需要查询的文件 ID 列表。 |
|
|
string |
否 |
需要查询的文件 ID。 |
11223** |
|
| FileName |
string |
否 |
文件的名称。 |
Filename |
| PageNumber |
integer |
否 |
分页的页数。 |
1 |
| PageSize |
integer |
否 |
每页显示的条数,默认为 10,最大 100 条。 |
20 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。用于出现错误后排查问题。 |
0000-ABCD-EFG**** |
| PagingInfo |
object |
分页信息。 |
|
| TotalCount |
integer |
满足条件的数据总条数。 |
100 |
| PageNumber |
integer |
分页页码,从 1 开始。 |
1 |
| PageSize |
integer |
分页大小,默认为 10。 |
10 |
| DeploymentPackageFiles |
array<object> |
具体的待发布的文件版本信息列表 |
|
|
object |
具体的待发布的文件版本信息 |
||
| Id |
integer |
唯一标识 |
650433503 |
| FileId |
integer |
文件的 ID。 |
520246913 |
| FileVersion |
integer |
文件的版本号 |
34 |
| CommitTime |
string |
提交时间 格式为 |
2025-04-10 15:55:47 |
| CommitUser |
string |
提交人的阿里云账号 ID |
446*** |
| CommitUserName |
string |
提交人的阿里云账号名称 |
user*** |
| ProjectId |
integer |
工作空间 ID。 |
27595 |
| TenantId |
integer |
DataWorks 租户 ID |
639415964191360 |
| FileType |
integer |
文件类型。不同文件类型其代码不同,详情请参见 DataWorks 节点合集。 |
13 |
| FileName |
string |
生成本次文件版本的文件名。 |
bak_part_basc_person_relation_all_da |
| Status |
integer |
该版本的代码文件的状态
|
100 |
| ChangeType |
integer |
Integer 变更类型
|
0 |
| IsSameAsProductionVersion |
boolean |
该版本是否是当前调度生产上的版本 |
true |
| NodeId |
integer |
该文件对应的调度上的节点 id |
700005008419 |
| Comment |
string |
提交时的注释 |
测试提交 |
| NodeConfiguration |
string |
保存该文件所在调度节点的调度属性配置信息(Json 串的形式保存) |
{ "tagList": [], "fileId": -1, "taskRerunTime": 0, "taskRerunInterval": 0, "reRunAble": 1, "nodeId": 125803000, "nodeName": "new", "nodeType": 0, "isStop": 0, "paraValue": "", "startEffectDate": "1970-01-01 00:00:00", "endEffectDate": "9999-01-01 00:00:00", "cronExpress": "00 26 00 * * ?", "owner": "1107550004250000", "resgroupId": 6300000, "cu": "0.25", "appId": 170000, "tenantId": 524257424560000, "createTime": "2025-04-10 15:55:01", "createUser": "1107550004250000", "lastModifyTime": "2025-04-10 15:55:41", "cycleType": 0, "dependentType": 0, "dependentTypeList": [0], "lastModifyUser": "1107550004250000", "dependentDataNode": "", "input": "[{\"regionId\":\"cn-hangzhou\",\"str\":\"root_input\",\"parseType\":1}]", "output": "[{\"str\":\"project_root.526586287_out\",\"parseType\":2},{\"str\":\"project_root.new\",\"parseType\":1}]", "inputList": [{ "regionId": "cn-hangzhou", "str": "root_input", "parseType": 1 }], "outputList": [{ "str": "project_root.526586287_out", "parseType": 2 }, { "str": "project_root.new", "parseType": 1 }], "isAutoParse": 1, "startRightNow": false, "extConfig": "{\"openCustomCron\":false,\"formCron\":\"\"}", "inputContextList": [], "outputContextList": [] } |
| UseType |
string |
文件所属的功能模块。取值如下:
|
NORMAL |
| SmokeTestStatus |
string |
开发环境测试情况 |
未测试 |
示例
正常返回示例
JSON格式
{
"RequestId": "0000-ABCD-EFG****",
"PagingInfo": {
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"DeploymentPackageFiles": [
{
"Id": 650433503,
"FileId": 520246913,
"FileVersion": 34,
"CommitTime": "2025-04-10 15:55:47",
"CommitUser": "446***",
"CommitUserName": "user***",
"ProjectId": 27595,
"TenantId": 639415964191360,
"FileType": 13,
"FileName": "bak_part_basc_person_relation_all_da",
"Status": 100,
"ChangeType": 0,
"IsSameAsProductionVersion": true,
"NodeId": 700005008419,
"Comment": "测试提交",
"NodeConfiguration": "{\n\t\"tagList\": [],\n\t\"fileId\": -1,\n\t\"taskRerunTime\": 0,\n\t\"taskRerunInterval\": 0,\n\t\"reRunAble\": 1,\n\t\"nodeId\": 125803000,\n\t\"nodeName\": \"new\",\n\t\"nodeType\": 0,\n\t\"isStop\": 0,\n\t\"paraValue\": \"\",\n\t\"startEffectDate\": \"1970-01-01 00:00:00\",\n\t\"endEffectDate\": \"9999-01-01 00:00:00\",\n\t\"cronExpress\": \"00 26 00 * * ?\",\n\t\"owner\": \"1107550004250000\",\n\t\"resgroupId\": 6300000,\n\t\"cu\": \"0.25\",\n\t\"appId\": 170000,\n\t\"tenantId\": 524257424560000,\n\t\"createTime\": \"2025-04-10 15:55:01\",\n\t\"createUser\": \"1107550004250000\",\n\t\"lastModifyTime\": \"2025-04-10 15:55:41\",\n\t\"cycleType\": 0,\n\t\"dependentType\": 0,\n\t\"dependentTypeList\": [0],\n\t\"lastModifyUser\": \"1107550004250000\",\n\t\"dependentDataNode\": \"\",\n\t\"input\": \"[{\\\"regionId\\\":\\\"cn-hangzhou\\\",\\\"str\\\":\\\"root_input\\\",\\\"parseType\\\":1}]\",\n\t\"output\": \"[{\\\"str\\\":\\\"project_root.526586287_out\\\",\\\"parseType\\\":2},{\\\"str\\\":\\\"project_root.new\\\",\\\"parseType\\\":1}]\",\n\t\"inputList\": [{\n\t\t\"regionId\": \"cn-hangzhou\",\n\t\t\"str\": \"root_input\",\n\t\t\"parseType\": 1\n\t}],\n\t\"outputList\": [{\n\t\t\"str\": \"project_root.526586287_out\",\n\t\t\"parseType\": 2\n\t}, {\n\t\t\"str\": \"project_root.new\",\n\t\t\"parseType\": 1\n\t}],\n\t\"isAutoParse\": 1,\n\t\"startRightNow\": false,\n\t\"extConfig\": \"{\\\"openCustomCron\\\":false,\\\"formCron\\\":\\\"\\\"}\",\n\t\"inputContextList\": [],\n\t\"outputContextList\": []\n}",
"UseType": "NORMAL",
"SmokeTestStatus": "未测试"
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。