All Products
Search
Document Center

Logic Composer:ListVersions

Last Updated:Aug 31, 2023

Queries all versions of a workflow.

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.

debugging

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
composer:ListVersionsList
  • LC
    acs:composer:{#regionId}:{#accountId}:flow/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
FlowIdstringYes

The ID of the workflow whose versions you want to query.

lc-uf6axpwfcw4ubx
PageNumberintegerNo

The page number of the page to return. The value must be an integer that is greater than 0. Default value: 1.

1
PageSizeintegerNo

The number of versions to return on each page. One page contains a maximum of 100 versions. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of versions of the workflow.

1
RequestIdstring

The ID of the request.

ADB97A33-50E7-48A5-963D-ACBAE36D0BEC
Versionsobject []

A list of the versions.

UpdateTimestring

The time when the version was last updated.

2018-12-12T07:36:22.992Z
VersionStatusinteger

The status of the version. Enabled indicates that the version is enabled.

Enabled
CreateTimestring

The time when the version was created.

2018-12-12T07:36:22.992Z
VersionIdstring

The ID of the version.

1
VersionNumberinteger

The number of the version. Increment from 1.

4
FlowIdstring

The ID of the workflow to which the version belongs.

lc-uf6axpwfcw4ubx
VersionNameinteger

The name of the version.

1

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "ADB97A33-50E7-48A5-963D-ACBAE36D0BEC",
  "Versions": [
    {
      "UpdateTime": "2018-12-12T07:36:22.992Z",
      "VersionStatus": 0,
      "CreateTime": "2018-12-12T07:36:22.992Z",
      "VersionId": "1",
      "VersionNumber": 4,
      "FlowId": "lc-uf6axpwfcw4ubx",
      "VersionName": 1
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-11-21API Description Update,The response structure of the API operation changes.see changesets
Change itemChange content
API DescriptionAPI Description Update
Output ParametersThe response structure of the API operation changes.