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
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.
- (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
- 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" }
- (Optional) Run the following command to view the request parameters of the DescribeSchedule
operation:
- View the list of time-based schedules.
- 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
- 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" } ] }
- Optional: Run the following command to view the request parameters of the ListSchedules operation: