GetCalendar

Updated at:

Retrieves the current configuration of a specified scheduling calendar.

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

Id

integer

Yes

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

12345

Response elements

Element

Type

Description

Example

object

Schema of Response

Calendar

object

The current complete configuration of the scheduling calendar.

AllProjects

boolean

Indicates whether the calendar applies to all workspaces.

true

Description

string

The description of the scheduling calendar.

Weekday scheduling calendar

EndDate

string

The end date of the validity period of the calendar, in the yyyy-MM-dd format. 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 configured. 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, in the yyyy-MM-dd format.

2026-10-08

SkipDates

array

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

string

The dry run date, in the yyyy-MM-dd format.

2026-10-09

StartDate

string

The start date of the validity period of the calendar, in the yyyy-MM-dd format. 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

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Calendar": {
    "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
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.