All Products
Search
Document Center

DataWorks:GetDeployment

Last Updated:Dec 10, 2024

Queries the information about a process for deploying or undeploying an entity.

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
ProjectIdstringYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

You must configure this parameter to specify the DataWorks workspace to which the API operation is applied.

10000
IdstringYes

The ID of the process.

a7ef0634-20ec-4a7c-a214-54020f91XXXX

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

08468352-032C-5262-AEDC-68C9FA05XXXX
Pipelineobject

The information about the process.

Idstring

The ID of the process.

a7ef0634-20ec-4a7c-a214-54020f91XXXX
ProjectIdstring

The DataWorks workspace ID.

56160
CreateTimelong

The time when the process was created. This value is a UNIX timestamp.

1724984066000
ModifyTimelong

The time when the process was modified. This value is a UNIX timestamp.

1724984066000
Creatorstring

The creator of the process.

137946317766XXXX
Statusstring

The status of the process.

Valid values:

  • Init
  • Running
  • Success
  • Fail
  • Termination
  • Cancel
RUNNING
Messagestring

The error message returned when the process fails.

Stagesarray<object>

The information about stages in the process.

stageobject

The information about a stage in the process.

Codestring

The code of the stage.

DEV_CHECK
Stepinteger

The step number of the stage.

1
Typestring

The type of the stage.

Valid values:

  • Deploy
  • Check
  • Offline
  • Build
  • Delete
BUILD
Namestring

The name of the stage.

Descriptionstring

The description of the stage.

Messagestring

The error message returned for the stage.

Statusstring

The status of the stage.

Valid values:

  • Init
  • Running
  • Success
  • Fail
  • Termination
  • Cancel
INIT
Detailobject

The details of the stage.

any

The additional information about the stage.

Examples

Sample success responses

JSONformat

{
  "RequestId": "08468352-032C-5262-AEDC-68C9FA05XXXX",
  "Pipeline": {
    "Id": "a7ef0634-20ec-4a7c-a214-54020f91XXXX\n",
    "ProjectId": "56160",
    "CreateTime": 1724984066000,
    "ModifyTime": 1724984066000,
    "Creator": "137946317766XXXX",
    "Status": "RUNNING",
    "Message": "",
    "Stages": [
      {
        "Code": "DEV_CHECK",
        "Step": 1,
        "Type": "BUILD",
        "Name": "",
        "Description": "",
        "Message": "",
        "Status": "INIT",
        "Detail": {
          "key": ""
        }
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history