ListWorkflowVersions

更新时间:
复制 MD 格式

Lists the versions for a specified workflow.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The ID of the cluster.

xxljob-b6ec1xxxx

AppName

string

Yes

The application name.

xxl-job-executor-sample

WorkflowId

integer

Yes

The workflow ID.

20

MaxResults

integer

No

The maximum number of results to return. The default value is 10.

10

NextToken

string

No

The token to retrieve the next page of results. Omit this parameter for the first request.

eCKqVlS5FKF5EWGGOo8EgQ==

Response elements

Element

Type

Description

Example

object

The response object.

Code

integer

The response code.

200

Message

string

The response message.

Parameter error: content is null.

RequestId

string

The unique identifier generated by Alibaba Cloud for this request. Use this Request ID to troubleshoot issues.

3835AA29-2298-5434-BC53-9CC377CDFD2C

Success

boolean

Indicates whether the request was successful.

  • true: The request was successful.

  • false: The request failed.

true

Data

array<object>

A list of workflow versions.

object

The details of the workflow version.

DagVersion

string

The version number.

v1

Current

boolean

Indicates whether this is the current active version.

true

CreateTime

string

The creation time.

2024-10-29 15:56:36

NextToken

string

The token to retrieve the next page of results. An empty value indicates that no more results are available.

eCKqVlS5FKF5EWGGOo8EgQ==

MaxResults

integer

The maximum number of results per page.

10

Examples

Success response

JSON format

{
  "Code": 200,
  "Message": "Parameter error: content is null.",
  "RequestId": "3835AA29-2298-5434-BC53-9CC377CDFD2C",
  "Success": true,
  "Data": [
    {
      "DagVersion": "v1",
      "Current": true,
      "CreateTime": "2024-10-29 15:56:36"
    }
  ],
  "NextToken": "eCKqVlS5FKF5EWGGOo8EgQ==",
  "MaxResults": 10
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter Parameter error: %s. Parameter error: %s
401 IllegalRequest IllegalRequest: %s. Illegal request:%s
500 InternalError InternalError: %s. System Internal Error: %s
403 NoPermission No permission to perform this operation: %s. No permission to perform this operation: %s
404 NotFound Not found: %s. The resource does not exist: %s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.