You can call this operation to query all versions of a workflow.

Debugging

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 ListVersions

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

FlowId String Yes lc-abcdefg

The ID of the workflow to query.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 10

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
RequestId String D264C934-2DA8-44B4-B034-C659A63AC659

The ID of the request.

TotalCount Integer 1

The total number of versions in the workflow.

Versions

The version list.

CreateTime String 2018-12-12T07:36:22.992Z

The time when the version was created.

FlowId String lc-abcdefg

The ID of the workflow to which the version belongs.

UpdateTime String 2018-12-12T07:36:22.992Z

The time when the version was last updated.

VersionId String lcv-abcdefg

The ID of the version.

VersionNumber Integer 10

The number of the version.

VersionStatus String Enabled

The status of the version. A value of Enabled indicates that the version was enabled.

Examples

Sample requests


http(s)://[Endpoint]/? Action=ListVersions
&FlowId=lc-abcdefg
&<Common request parameters>

Sample success responses

XML format

<ListVersionsResponse>
    <Versions>
        <FlowId>lc-abcdefg</FlowId>
        <VersionId>lcv-d5ec3fe2d5be</VersionId>
        <VersionNumber>10</VersionNumber>
        <VersionStatus>Enabled</VersionStatus>
        <CreatedAt>2018-12-12T07:36:22.992Z</CreatedAt>
        <UpdatedAt>2018-12-12T07:36:22.992Z</UpdatedAt>
    </Versions>
    <TotalCount>1</TotalCount>
    <RequestId>D264C934-2DA8-44B4-B034-C659A63AC659</RequestId>
</ListVersionsResponse>

JSON format

{
	"TotalCount":1,
	"Versions":[
		{
			"UpdatedAt":"2018-12-12T07:36:22.992Z",
			"FlowId":"lc-abcdefg",
			"VersionId":"lcv-d5ec3fe2d5be",
			"VersionNumber":10,
			"VersionStatus":"Enabled",
			"CreatedAt":"2018-12-12T07:36:22.992Z"
		}
	],
	"RequestId":"D264C934-2DA8-44B4-B034-C659A63AC659"
}

Error codes

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