Queries a list of versions of files to be deployed.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| dataworks:* | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ProjectId | long | Yes | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID. | 12345 |
| BusinessId | long | No | The workflow ID. You can call the ListBusiness operation to query the workflow ID by name. | 100001 |
| SolutionId | long | No | The solution ID. | 8065 |
| CommitFrom | string | No | The start date for committing. Specify the date in the yyyy-MM-dd format. | 2025-01-01 |
| CommitTo | string | No | The end date (included) for committing. Specify the date in the yyyy-MM-dd format. | 2025-01-31 |
| CommitUserId | string | No | The ID of the user who commits the file. | 2003**** |
| FileType | integer | No | The type of the code for the file. The code for files varies based on the file type. For more information, see DataWorks nodes. You can call the ListFileType operation to query the type of the code for the file. | 10 |
| ChangeType | integer | No | The change type. Valid values:
| 0 |
| FileIds | array | No | The IDs of the files to be queried. | |
| string | No | The ID of the file to be queried. | 11223** | |
| FileName | string | No | The name of the file. | Filename |
| PageNumber | integer | No | The page number. | 1 |
| PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 100. | 20 |
Response parameters
Examples
Sample success responses
JSONformat
{
"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": {
"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": "NORMAL",
"SmokeTestStatus": ""
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
