All Products
Search
Document Center

DataWorks:GetDeploymentPackage

Last Updated:Nov 05, 2025

Queries the information about a deployment package.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongNo

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to obtain the ID. This parameter identifies the DataWorks workspace for this API call.

10000
ProjectIdentifierstringNo

The unique identifier of the DataWorks workspace. This is the identifier shown in the workspace switcher at the top of the Data Studio page.

Either this parameter or ProjectId must be specified to determine which DataWorks workspace this API call operates on.

dw_project
DeploymentIdlongYes

The deployment package ID. This ID is generated when you call SubmitFile or DeployFile .

1000000001

Response parameters

ParameterTypeDescriptionExample
object

The response.

HttpStatusCodeinteger

The HTTP status code.

200
ErrorMessagestring

The error message.

You have no permission.
RequestIdstring

The request ID. Use this ID to locate logs and troubleshoot issues.

0bc1ec92159376****
ErrorCodestring

The error code.

Invalid.Tenant.ConnectionNotExists
Successboolean

Indicates whether the call succeeded. Valid values:

  • true
  • false
true
Dataobject

The deployment package details.

Deploymentobject

The deployment package details.

Statusinteger

The current status of the deployment package. Valid values: 0 (ready), 1 (succeeded), and 2 (failed).

1
ErrorMessagestring

The detailed error message when the deployment package fails (status is 2).

Success
FromEnvironmentinteger

The environment where the deployment is executed. Valid values: 0 (local) and 1 (development).

0
ToEnvironmentinteger

The target environment for the deployment. Valid values: 1 (development) and 2 (production).

1
CheckingStatusinteger

The validation status of nodes in the deployment package. For packages deployed to the development environment (toEnviroment=1), you can only proceed to deploy to production if the package Status is 1 (succeeded) and CheckingStatus is empty (validation complete).

  • 7: Validation failed
  • 8: Validation in progress
7
CreateTimelong

The timestamp (in milliseconds) when the deployment package was created.

1593877765000
HandlerIdstring

The Alibaba Cloud account ID of the user who executed the deployment.

2003****
CreatorIdstring

The Alibaba Cloud account ID of the user who created the deployment package.

20030****
ExecuteTimelong

The timestamp (in milliseconds) when the deployment started.

1593877765000
Namestring

The deployment package name, displayed on the Deploy Center > Deployment Packages page.

ods_user_info_d-2020-07-04_20030****
DeployedItemsarray<object>

The deployment item details.

DeployedItemobject

The deployment item details.

FileIdlong

The file ID.

5076****
FileVersionlong

The file version.

7
Statusinteger
  • UNPUBLISHED(0)
  • SUCCESS(1)
  • ERROR(2)
  • CLONED(3)
  • DEPLOY_ERROR(4)
  • CLONING(5)
  • REJECT(6)
1

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "ErrorMessage": "You have no permission.",
  "RequestId": "0bc1ec92159376****",
  "ErrorCode": "Invalid.Tenant.ConnectionNotExists",
  "Success": true,
  "Data": {
    "Deployment": {
      "Status": 1,
      "ErrorMessage": "Success",
      "FromEnvironment": 0,
      "ToEnvironment": 1,
      "CheckingStatus": 7,
      "CreateTime": 1593877765000,
      "HandlerId": "2003****",
      "CreatorId": "20030****",
      "ExecuteTime": 1593877765000,
      "Name": "ods_user_info_d-2020-07-04_20030****"
    },
    "DeployedItems": [
      {
        "FileId": 0,
        "FileVersion": 7,
        "Status": 1
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403Forbidden.AccessAccess is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.No permission, please authorize
429Throttling.ApiThe request for this resource has exceeded your available limit.-
429Throttling.SystemThe DataWorks system is busy. Try again later.-
429Throttling.UserYour request is too frequent. Try again later.-
500InternalError.SystemAn internal system error occurred. Try again later.-
500InternalError.UserId.MissingAn internal system error occurred. Try again later.-

For a list of error codes, visit the Service error codes.