ListCalendarVersions
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
Test
RAM authorization
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 |
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: |
2026-10-09 |
| ExpirationReminder |
string |
The expiration reminder. This parameter is returned only for strongly constrained calendars. Valid values:
Valid values:
|
OneMonthBefore |
| FallbackPolicy |
string |
The default scheduling policy for dates that are not specified. This parameter is returned only for weakly constrained calendars. Valid values:
Valid values:
|
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:
Valid values:
|
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: |
2026-10-08 |
|
| SkipDates |
array |
The list of non-scheduling dates. Tasks perform dry runs on these dates. |
|
|
string |
The dry run date. Format: |
2026-10-09 |
|
| StartDate |
string |
The start date of the calendar validity period. Format: |
2026-10-08 |
| Type |
string |
The calendar type. Valid values:
Valid values:
|
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.