This topic describes how to view one or more flows in the Serverless Workflow console or by using Alibaba Cloud CLI.

View flows in the console

  1. Log on to the Serverless workflow console.
  2. On the Flows page, view all flows, including console_guide_1 that you created in the preceding step.
    list-flows-1
  3. Click the name of the target flow to view relevant details.
    desc-flow-1

View flows by using Alibaba Cloud CLI

  • You can use the DescribeFlow command to view a flow.
    aliyun fnf DescribeFlow --Name cli_guide_1
    # Command execution result
    {
        "Name": "cli_guide_1",
        "Description": "demo",
        "Definition": "version: v1\ntype: flow\nsteps:\n  - type: pass\n    name: pass1",
        "Id": "78c68342-d63b-4cb5-9207-4e44eeb7e632",
        "Type": "FDL",
        "RoleArn": "acs:ram::xxx:xxx",
        "CreatedTime": "2019-05-13T05:59:51.762Z",
        "LastModifiedTime": "2019-05-13T05:59:51.762Z",
        "RequestId": "xxxx"
    }            
  • You can also use the ListFlows command to view multiple flows.
    $ aliyun fnf ListFlows --Limit 1
    # Command execution result
    {
        "Flows": [
            {
                "Name": "cli_guide_1",
                "Description": "demo",
                "Definition": "version: v1\ntype: flow\nname: test\nsteps:\n  - type: pass\n    name: pass1",
                "Id": "78c68342-d63b-4cb5-9207-4e44eeb7e632",
                "Type": "FDL",
                "RoleArn": "acs:ram::xxx:xxx",
                "CreatedTime": "2019-05-13T05:59:51.762Z",
                "LastModifiedTime": "2019-05-13T05:59:51.762Z"
            }
        ],
        "NextToken": "cli_guide_2",
        "RequestId": "232ee8b3-d19e-e68c-c928-31540f8a4dff"
    }          
    Note Limit: the number of flows to be obtained. If an execution involves other data, the result contains NextToken. In the next query, you can use the --NextToken parameter to specify the starting position of the query.