All Products
Search
Document Center

Logic Composer:ListFlows

Last Updated:Aug 31, 2023

Queries all workflows in the current region.

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:ListFlowsList
  • LC
    acs:composer:{#regionId}:{#accountId}:flow/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageSizeintegerNo

Specifies the number of workflows to return on each page. A page can contain a maximum of 100 workflows. Default value: 10.

10
PageNumberintegerNo

The page number of the current page. Minimum value: 1. Default value: 1.

1
FlowNamestringNo

The name of the workflow.

test
FilterstringNo

The filter condition, which is in the JSON format of {"key":"value"}. Example: {"key1":"value1"}

{\"tags\":[{\"key\":\"acs:lc:Solution:AliyunSSO\",\"value\":\"test\"}]}
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmzy6dzs6qtqa

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of workflows in the current region.

1
RequestIdstring

The ID of the request.

A4865221-E0BC-5AF6-BDD3-749F5A2371CC
Flowsobject []

A list of workflows.

UpdateTimestring

The time when the workflow was last updated.

2019-07-19T05:43:16.783Z
FlowSourcestring

The source of the workflow.

Solution
FlowStatusstring

The status of the workflow. Valid values:

  • Enabled: The workflow is enabled.
  • Disabled: The workflow is disabled.
Enabled
CreateTimestring

The time when the workflow was created.

2019-07-19T05:43:16.783Z
FlowEditModestring

The edit mode of the workflow.

Normal
VersionIdinteger

The latest version of the workflow.

1
FlowDescriptionstring

The description of the workflow.

test flow
FlowNamestring

The name of the workflow.

test
TemplateIdstring

The template ID. You can call the ListTemplates operation to obtain the template ID.

tp-uf6lzhzywy28bs
FlowIdstring

The ID of the workflow.

lc-uf6axpwfcw4ubx
RegionIdstring

The region to which the workflow belongs.

cn-shanghai
ResourceGroupIdstring

The ID of the resource group.

rg-acfmzyxxxxxxx

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "A4865221-E0BC-5AF6-BDD3-749F5A2371CC",
  "Flows": [
    {
      "UpdateTime": "2019-07-19T05:43:16.783Z",
      "FlowSource": "Solution",
      "FlowStatus": "Enabled",
      "CreateTime": "2019-07-19T05:43:16.783Z",
      "FlowEditMode": "Normal",
      "VersionId": 1,
      "FlowDescription": "test flow",
      "FlowName": "test",
      "TemplateId": "tp-uf6lzhzywy28bs",
      "FlowId": "lc-uf6axpwfcw4ubx",
      "RegionId": "cn-shanghai",
      "ResourceGroupId": "rg-acfmzyxxxxxxx"
    }
  ]
}

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 input parameters of the API operation change.,The response structure of the API operation changes.see changesets
Change itemChange content
API DescriptionAPI Description Update
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: ResourceGroupId
Output ParametersThe response structure of the API operation changes.