Queries the published versions of a task flow.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListDAGVersions

The operation that you want to perform. Set the value to ListDAGVersions.

DagId Long Yes 7***

The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the ID of the task flow.

PageIndex Integer Yes 1

The number of the page to return.

PageSize Integer Yes 20

The number of entries to return on each page.

Tid Long No 3***

The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID.

RegionId String No cn-hangzhou

The region in which Data Management (DMS) is activated. For more information, see RegionID parameter.

Response parameters

Parameter Type Example Description
RequestId String C7775630-7901-51B9-8782-9B585EC0799A

The ID of the request.

ErrorCode String 403

The error code returned if the request fails.

ErrorMessage String UnknownError

The error message returned if the request fails.

Success Boolean true

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
TotalCount Integer 1

The total number of entries returned.

DagVersionList Array of DagVersion

The information about the published versions.

DagName String Spark SQL

The name of the task flow.

DagOwnerId String 51****

The ID of the task flow owner.

DagOwnerNickName String name

The name of the task flow owner.

VersionComments String test_OSS

The description of the version.

VersionId Long 2****

The ID of the version.

LastVersionId Long 2****

The ID of the previously published version.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

            <DagName>Spark SQL</DagName>

JSON format

HTTP/1.1 200 OK

  "TotalCount" : 1,
  "RequestId" : "C7775630-7901-51B9-8782-9B585EC0799A",
  "DagVersionList" : {
    "DagVersion" : [ {
      "VersionId" : "2****",
      "DagOwnerId" : "51****",
      "VersionComments" : "test_OSS",
      "DagName" : "Spark SQL",
      "DagOwnerNickName" : "name"
    } ]
  "Success" : true

Error codes

For a list of error codes, visit the API Error Center.