Question: How do we list all calendar names for a specific schedule?
Answer: The following method returns the list of all calendar names that were added to the scheduler.
Method: GET URL: http://<host>:<port>/jasperserver[-pro]/rest_v2/jobs/calendars/?<argument>
The arguments required for this API is as below:
Argument: calendar Type, Type/Value: optional string, Description: A type of calendar to return: annual, cron, daily, holiday, monthly, or weekly. You may specify only one calendarType parameter. When calendarType isn't specified, all calendars names are returned. If calendarType has an invalid value, an empty collection is returned.
The Return values for this request is as below:
a) For Success: 200 OK – Body contains a list of calendar names.
b) For Failure: 401 Unauthorized
The list of calendar names in the result has the following format in XML:
<calendarNameList>
<calendarName>name1</calendarName>
<calendarName>name2</calendarName>
</calendarNameList>
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now