ListScheduleTimes

更新时间:
复制 MD 格式

Retrieves the next five scheduled times based on the specified time type and time expression.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The cluster ID.

xxljob-b6ec1xxxx

AppName

string

Yes

The application name.

test-app

TimeType

integer

Yes

The time type. The only supported type is cron.

  • 1: cron

1

TimeExpression

string

Yes

The time expression, such as a cron expression.

0 0/10 * * * ?

TimeZone

string

No

The time zone used to evaluate the time expression.

Asia/Beijing

Calendar

string

No

The name of the calendar to use for scheduling, such as a business day calendar.

workday

Response elements

Element

Type

Description

Example

object

The response object.

Code

integer

The response code. 200 indicates that the request was successful.

200

Message

string

The response message. The value is success if the request succeeds, or an error message if it fails.

Parameter check error

RequestId

string

The unique ID of the request. Use this ID for troubleshooting.

9A48E22F-F30A-5CE5-AC7A-E0FED1B6942E

Success

boolean

Indicates whether the request was successful.

  • true: The request was successful.

  • false: The request failed.

true

Data

array

A list of the scheduled times.

string

A scheduled time in YYYY-MM-DD hh:mm:ss format.

2024-11-17 12:00:00

Examples

Success response

JSON format

{
  "Code": 200,
  "Message": "Parameter check error",
  "RequestId": "9A48E22F-F30A-5CE5-AC7A-E0FED1B6942E",
  "Success": true,
  "Data": [
    "2024-11-17 12:00:00"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter Parameter error: %s. Parameter error: %s
401 IllegalRequest IllegalRequest: %s. Illegal request:%s
500 InternalError InternalError: %s. System Internal Error: %s
403 NoPermission No permission to perform this operation: %s. No permission to perform this operation: %s
404 NotFound Not found: %s. The resource does not exist: %s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.