All Products
Search
Document Center

CloudFlow:View a workflow

Last Updated:Aug 01, 2024

This topic describes how to view a workflow by using the CloudFlow console or Alibaba Cloud CLI.

The CloudFlow console

  1. Log on to the CloudFlow console.

  2. On the Flows page, view all workflows.

    list-flows-1

  3. Click the name of a workflow to view the details of the workflow.

    image

Alibaba Cloud CLI

  • You can run the following command to view a workflow:

    aliyun fnf DescribeFlow --Name cli_guide_1

    Expected output:

    # The output of the command
    {
      "Name": "cli_guide_1",
      "Description": "demo",
      "Definition": "version: v1\ntype: flow\nsteps:\n  - type: pass\n    name: pass1",
      "Id": "47ced55d-590b-482a-975f-915ac2365ad6",
      "Type": "FDL",
      "RoleArn": "acs:ram::xxx:xxx",
      "CreatedTime": "2024-06-24T02:31:43.359Z",
      "LastModifiedTime": "2024-06-24T02:31:43.359Z",
      "ExecutionMode": "Standard",
      "RequestId": "fc356cd5-11d8-ff64-0a78-47189da6833d"
    }            
  • You can also run the following command to view multiple workflows:

    aliyun fnf ListFlows --Limit 1

    Expected output:

    # The output of the command
    {
      "Flows": [
        {
          "Name": "cli_guide_1",
          "Description": "demo",
          "Definition": "version: v1\ntype: flow\nname: test\nsteps:\n  - type: pass\n    name: pass1",  
          "Id": "ddcb687d-3a25-46d2-8062-cea6673ed272",
          "Type": "FDL",
          "RoleArn": "acs:ram::xxx:xxx",
          "CreatedTime": "2024-06-06T06:32:52.04Z",
          "LastModifiedTime": "2024-06-06T06:32:52.04Z",
          "ExecutionMode": "Standard"
        }
      ],
      "NextToken": "MyWorkFlow",
      "RequestId": "1ae78dbf-6f9a-3f74-fbec-03a8c9523735"
    }
    Note

    Limit: specifies the number of workflows that you want to view. If the workflow involves more executions, the response parameters contain NextToken. You can use this NextToken parameter value to specify the start position of the next query.