Cisco Cisco Tidal Enterprise Scheduler 6.2 テクニカルリファレンス
3-16
Cisco Tidal Enterprise Scheduler 6.2.1 REST API Reference Guide
6.2.1
Chapter 3 Calendar
Calendar Examples
From the browser, issue and then click Manual Commands (Post) to take you to the API post screen of
the client. You can test the REST API examples from this screen. For valid parameters and successful
execution of a request, you will get a response/result. For invalid parameters and unsuccessful execution
of a request, you will get error messages and/or exceptions.
the client. You can test the REST API examples from this screen. For valid parameters and successful
execution of a request, you will get a response/result. For invalid parameters and unsuccessful execution
of a request, you will get error messages and/or exceptions.
Calendar Example 1 – Get a list of available calendars
The Calendar object provides a method called getList. It has no parameters. The following REST API
call will return a list of calendars.
call will return a list of calendars.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.getList xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
</tes:Calendar.getList>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.getList xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
</tes:Calendar.getList>
</entry>
Calendar Example 2 – Get a specific calendar
The Calendar object provides a method called getList. The parameter called id (e.g. 30) is required, and
specifies the calendar to be retrieved. The following REST API call will return the specified calendar if
it exists and an exception if the calendar cannot be found.
specifies the calendar to be retrieved. The following REST API call will return the specified calendar if
it exists and an exception if the calendar cannot be found.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.get xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:id>30</tes:id>
</tes:Calendar.get>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.get xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:id>30</tes:id>
</tes:Calendar.get>
</entry>
Calendar Example 3 – Compile a single calendar
The Calendar object provides a method called compileSingleCalendar. The parameter called id (e.g. 30)
specifies the calendar instance to be compiled. The following REST API call will compile the calendar
with id
specifies the calendar instance to be compiled. The following REST API call will compile the calendar
with id
12.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.compileSingleCalendar
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Calendar.compileSingleCalendar
xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:id>30</tes:id>
</tes:Calendar.compileSingleCalendar>
</entry>
</tes:Calendar.compileSingleCalendar>
</entry>