All Products
Search
Document Center

CloudFlow:ListSchedules

Last Updated:Mar 03, 2025

Queries time-based schedules in a flow.

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.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
fnf:ListSchedulesget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
FlowNamestringYes

The name of the flow that is associated with the time-based schedules. The name is unique within the region and cannot be modified after the flow is created. The name must meet the following conventions:

  • The name can contain letters, digits, underscores (_), and hyphens (-).
  • The name must start with a letter or an underscore (_).
  • The name is case-sensitive.
  • The name must be 1 to 128 characters in length.
testFlowName
NextTokenstringNo

For the first query, you do not need to specify this parameter. The system uses the value of the FlowName parameter as the value of the NextToken parameter. When the query ends, no value is returned for this parameter.

testNextToken
LimitintegerNo

The number of schedules that you want to query. Valid values: 1 to 1000.

1

Response parameters

ParameterTypeDescriptionExample
object

The schema of response.

NextTokenstring

The token for the next query.

testNextToken
RequestIdstring

The request ID.

testRequestId
Schedulesarray<object>

The time-based schedules that are queried.

Schedulesobject
Descriptionstring

The description of the time-based schedule.

test description
ScheduleIdstring

The ID of the time-based schedule.

testScheduleId
Payloadstring

The trigger message of the time-based schedule.

{"key": "value"}
ScheduleNamestring

The name of the time-based schedule.

testScheduleName
CreatedTimestring

The time when the time-based schedule was created.

2020-01-01T01:01:01.001Z
LastModifiedTimestring

The time when the time-based schedule was last modified.

2020-01-01T01:01:01.001Z
CronExpressionstring

The cron expression of the scheduled task.

0 * * * * *
Enableboolean

Indicates whether the time-based schedule is enabled. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "NextToken": "testNextToken",
  "RequestId": "testRequestId",
  "Schedules": [
    {
      "Description": "test description",
      "ScheduleId": "testScheduleId",
      "Payload": "{\"key\": \"value\"}",
      "ScheduleName": "testScheduleName",
      "CreatedTime": "2020-01-01T01:01:01.001Z",
      "LastModifiedTime": "2020-01-01T01:01:01.001Z",
      "CronExpression": "0 * * * * *",
      "Enable": true
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400ActionNotSupportedThe requested API operation '%s' is incorrect. Please check.-
400APIVersionNotSupportedThe requested API version '%s' is not supported yet. Please check.-
400InvalidArgumentParameter error.Parameter error.
400MissingRequiredHeaderThe HTTP header '%s' must be specified.The HTTP header '%s' must be specified.
400MissingRequiredParamsThe HTTP query '%s' must be specified.The HTTP query '%s' must be specified.
403AccessDeniedThe resources doesn't belong to you.-
404FlowNotExistsFlow %s does not exist.Flow %s does not exist.
412PreconditionFailedThe resource to be modified has been changed.The resource to be modified has been changed. Please try again later.
500InternalServerErrorAn internal error has occurred. Please retry.An internal error has occurred. Please retry.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-21The Error code has changed. The request parameters of the API has changedView Change Details