This topic describes how to view the list of time-based schedules or details of individual time-based schedules by using the Serverless Workflow console or Alibaba Cloud CLI.

View time-based schedules by using the Serverless Workflow console

  1. Log on to the Serverless Workflow console.
  2. On the Flows page, click the name of the flow for which you want to create a time-based schedule.
    workflow-name
  3. Click the Schedule tab.
    A list of time-based schedules appear.trigger-list

View time-based schedules by using Alibaba Cloud CLI

You must install and configure Alibaba Cloud CLI Before you use it. For more information, see What is Alibaba Cloud CLI?.

  • View the details about a time-based schedule.
    1. (Optional) Run the following command to view the request parameters of the DescribeSchedule operation:
      aliyun fnf DescribeSchedule help

      Expected output:

      Alibaba Cloud Command Line Interface Version 3.0.45
      
      Product: fnf (FunctionFlow)
      Link:    https://xxxxxxxx.html
      
      Parameters:
        --FlowName     String  Required
        --ScheduleName String  Required
        --RequestId    String  Optional
    2. Run the following command to view the details about a time-based schedule:
      aliyun fnf DescribeSchedule --FlowName test --ScheduleName schedule-test

      Expected output:

      {
          "CreatedTime": "2020-05-22T09:22:03Z",
          "CronExpression": "@every 1m",
          "Description": "test schedule",
          "Enable": true,
          "LastModifiedTime": "2020-05-22T09:22:03Z",
          "Payload": "{\"key\":\"value\"}",
          "RequestId": "943871ff-e9c5-9370-f4cc-450481983fdf",
          "ScheduleId": "978be20f-cceb-4677-935c-c2fe6fb4c571",
          "ScheduleName": "schedule-test"
      }
  • View the list of time-based schedules.
    1. Optional: Run the following command to view the request parameters of the ListSchedules operation:
      aliyun fnf ListSchedules help

      Expected output:

      Alibaba Cloud Command Line Interface Version 3.0.45
      
      Product: fnf (FunctionFlow)
      Link:    https://xxxxxxx.html
      
      Parameters:
        --FlowName  String  Required
        --Limit     Integer Optional
        --NextToken String  Optional
        --RequestId String  Optional
    2. Run the following command to view the list of the time-based schedules:
      aliyun fnf ListSchedules --FlowName test

      Expected output:

      {
          "RequestId": "fe1297d5-d143-9e36-5b42-2e18c1d59df0",
          "Schedules": [
              {
                  "CreatedTime": "2020-05-22T09:22:03Z",
                  "CronExpression": "@every 1m",
                  "Description": "test schedule",
                  "Enable": true,
                  "LastModifiedTime": "2020-05-22T09:22:03Z",
                  "Payload": "{\"key\":\"value\"}",
                  "ScheduleId": "978be20f-cceb-4677-935c-c2fe6fb4c571",
                  "ScheduleName": "schedule-test"
              }
          ]
      }