ListCalendarVersions

Updated at:

Queries the versions of a specified scheduling calendar.

Operation description

DataWorks Enterprise Edition is required. Before calling this operation, you must create a scheduling calendar by calling CreateCalendar, or query existing calendars and obtain the calendar ID by calling ListCalendars.

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 syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The ID of the scheduling calendar whose versions you want to query. You can obtain the ID from the PagingInfo.Calendars[].Id parameter returned by the ListCalendars operation.

12345

PageNumber

integer

No

The page number. Pages start from 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10. Valid values: 1 to 100.

10

Response elements

Element

Type

Description

Example

object

Schema of Response

PagingInfo

object

The pagination information.

CalendarVersions

array<object>

The scheduling calendar configurations returned by page in descending order of version numbers. The version list includes the current version.

array<object>

The scheduling calendar.

AllProjects

boolean

Specifies whether the scheduling calendar applies to all workspaces.

true

Description

string

The description of the scheduling calendar.

Weekday scheduling calendar

EndDate

string

The end date of the calendar validity period. Format: yyyy-MM-dd. This parameter is returned only for strongly constrained calendars.

2026-10-09

ExpirationReminder

string

The expiration reminder. This parameter is returned only for strongly constrained calendars. Valid values:

  • OneMonthBefore: One month in advance.

  • OneWeekBefore: One week in advance.

  • ThreeDaysBefore: Three days in advance.

Valid values:

  • OneMonthBefore :

    One month in advance.

  • ThreeDaysBefore :

    Three days in advance.

  • OneWeekBefore :

    One week in advance.

OneMonthBefore

FallbackPolicy

string

The default scheduling policy for dates that are not specified. This parameter is returned only for weakly constrained calendars. Valid values:

  • Normal: Normal scheduling.

  • Pause: Pause scheduling.

  • Skip: Dry run.

Valid values:

  • Pause :

    Pause scheduling.

  • Skip :

    Dry run.

  • Normal :

    Normal scheduling.

Normal

Id

integer

The ID of the scheduling calendar.

12345

ModifyTime

integer

The time when the calendar was modified. The value is a UNIX timestamp in milliseconds.

1640000000000

Name

string

The name of the scheduling calendar.

work_calendar

OverduePolicy

string

The scheduling policy after the calendar expires. This parameter is returned only for strongly constrained calendars. Valid values:

  • Normal: Normal scheduling.

  • Pause: Pause scheduling.

  • Skip: Dry run.

Valid values:

  • Pause :

    Pause scheduling.

  • Skip :

    Dry run.

  • Normal :

    Normal scheduling.

Skip

Owner

string

The account ID of the owner.

123456789

ProjectIds

array

The IDs of the applicable workspaces. An empty array is returned if AllProjects is set to true.

integer

The workspace ID.

1000

SchedulePolicy

object

The date scheduling policy.

NormalDates

array

The list of normal scheduling dates.

string

The normal scheduling date. Format: yyyy-MM-dd.

2026-10-08

SkipDates

array

The list of non-scheduling dates. Tasks perform dry runs on these dates.

string

The dry run date. Format: yyyy-MM-dd.

2026-10-09

StartDate

string

The start date of the calendar validity period. Format: yyyy-MM-dd. This parameter is returned only for strongly constrained calendars.

2026-10-08

Type

string

The calendar type. Valid values:

  • StrongConstraint: Strongly constrained calendar.

  • WeakConstraint: Weakly constrained calendar.

Valid values:

  • WeakConstraint :

    Weakly constrained calendar.

  • StrongConstraint :

    Strongly constrained calendar.

StrongConstraint

Version

integer

The version number.

1

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

TotalCount

integer

The total number of versions for the scheduling calendar.

10

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "PagingInfo": {
    "CalendarVersions": [
      {
        "AllProjects": true,
        "Description": "Weekday scheduling calendar",
        "EndDate": "2026-10-09",
        "ExpirationReminder": "OneMonthBefore",
        "FallbackPolicy": "Normal",
        "Id": 12345,
        "ModifyTime": 1640000000000,
        "Name": "work_calendar",
        "OverduePolicy": "Skip",
        "Owner": "123456789",
        "ProjectIds": [
          1000
        ],
        "SchedulePolicy": {
          "NormalDates": [
            "2026-10-08"
          ],
          "SkipDates": [
            "2026-10-09"
          ]
        },
        "StartDate": "2026-10-08",
        "Type": "StrongConstraint",
        "Version": 1
      }
    ],
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 10
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.