Queries the published versions of a task flow.
Debugging
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:
|
| TotalCount | Integer | 1 |
The total number of entries returned. |
| DagVersionList | Array of DagVersion |
The information about the published versions. |
|
| DagVersion | |||
| 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. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=ListDAGVersions
&DagId=7***
&PageIndex=1
&PageSize=20
&Tid=3***
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListDAGVersionsResponse>
<TotalCount>1</TotalCount>
<RequestId>C7775630-7901-51B9-8782-9B585EC0799A</RequestId>
<DagVersionList>
<DagVersion>
<VersionId>2****</VersionId>
<DagOwnerId>51****</DagOwnerId>
<VersionComments>test_OSS</VersionComments>
<DagName>Spark SQL</DagName>
<DagOwnerNickName>name</DagOwnerNickName>
</DagVersion>
</DagVersionList>
<Success>true</Success>
</ListDAGVersionsResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.