ListCalendars

Updated at:

Retrieves a list of scheduling calendars.

Operation description

DataWorks Enterprise Edition is required.

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

ProjectId

integer

No

The workspace ID. Queries the calendars applicable to the workspace, including calendars applicable to all workspaces. If this parameter is not specified, the calendars of the current tenant are queried.

1000

Name

string

No

The name of the scheduling calendar. Substring match is supported.

calendar

Owner

string

No

The account ID of the owner. Exact match is supported.

123456789

SortBy

string

No

The sorting rule. The format is "Field Direction", separated by a space.

  • Field: ModifyTime, Name, or Id.

  • Direction: Asc (ascending order) or Desc (descending order). If not specified, the default value is Asc.

Default value: ModifyTime Desc.

ModifyTime Desc

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.

Calendars

array<object>

The list of scheduling calendars.

array<object>

The scheduling calendar.

AllProjects

boolean

Indicates whether the calendar is applicable 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 list of applicable workspace IDs. 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. Nodes 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 scheduling calendars that meet the query conditions.

10

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "PagingInfo": {
    "Calendars": [
      {
        "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.