ListDeploymentPackageFiles

Updated at:

Retrieves the list of file versions pending deployment.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace configuration page to obtain the workspace ID.

12345

BusinessId

integer

No

The ID of the workflow. You can call the ListBusiness operation to query the ID of the workflow by name.

100001

SolutionId

integer

No

The Solutions ID.

8065

CommitFrom

string

No

The start date for the commit, in the format yyyy-MM-dd.

2025-01-01

CommitTo

string

No

The end date for the commit (inclusive), in the format yyyy-MM-dd.

2025-01-31

CommitUserId

string

No

The user ID of the committer.

2003****

FileType

integer

No

The code type of the file.

Different file types have different codes. For more information, see DataWorks nodes. You can also call the ListFileType operation to query the code type of a file.

10

ChangeType

integer

No

The change type. Valid values:

  • 0: added.

  • 1: updated.

  • 2: deleted.

0

FileIds

array

No

The list of file IDs to query.

string

No

The file ID to query.

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 elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID. You can use this ID to troubleshoot issues.

0000-ABCD-EFG****

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries that meet the conditions.

100

PageNumber

integer

The page number, starting from 1.

1

PageSize

integer

The page size. Default value: 10.

10

DeploymentPackageFiles

array<object>

The list of file versions pending deployment.

object

The information about a file version pending deployment.

Id

integer

The unique identifier.

650433503

FileId

integer

The ID of the file.

520246913

FileVersion

integer

The version number of the file.

34

CommitTime

string

The commit time.

The format is yyyy-MM-dd HH:mm:ss, for example, 2025-04-10 15:55:47. This example does not include a time zone identifier.

2025-04-10 15:55:47

CommitUser

string

The Alibaba Cloud account ID of the committer.

446***

CommitUserName

string

The Alibaba Cloud account name of the committer.

user***

ProjectId

integer

The workspace ID.

27595

TenantId

integer

The DataWorks tenant ID.

639415964191360

FileType

integer

The file type. Different file types have different codes. For more information, see DataWorks nodes.

13

FileName

string

The name of the file that generated this file version.

bak_part_basc_person_relation_all_da

Status

integer

The status of the code file for this version. Valid values:

  • 2: commit check in progress.

  • 3: commit check succeeded.

  • 4: commit check rejected.

  • 10: committing.

  • 11: committed to the scheduling development environment.

  • 20: review approved.

  • 21: review failed.

  • 22: check has warnings.

  • 23: code review in progress.

  • 24: code review rejected.

  • 80: deployment package created.

  • 100: deploying.

  • 101: deployed to production.

  • 200: canceled.

100

ChangeType

integer

The change type. Valid values:

  • 0: added.

  • 1: updated.

  • 2: deleted.

0

IsSameAsProductionVersion

boolean

Indicates whether this version is the same as the current production version in scheduling.

true

NodeId

integer

The node ID in scheduling that corresponds to this file.

700005008419

Comment

string

The comment provided at the time of commit.

Test commit

NodeConfiguration

string

The scheduling property configuration of the scheduling node to which this file belongs, stored as a JSON string.

{ "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

The functional module to which the file belongs. Valid values:

  • NORMAL: Data Studio.

  • MANUAL: manual task.

  • MANUAL_BIZ: manual workflow.

  • SKIP: dry-run scheduling in Data Studio.

  • ADHOCQUERY: ad hoc query.

  • COMPONENT: component management.

NORMAL

SmokeTestStatus

string

The testing status in the development environment.

Not tested

Examples

Success response

JSON format

{
  "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": "Test commit",
        "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": "Not tested"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.