Cisco Cisco Workload Automation 6.3 Developer's Guide

Page of 190
24
Calendar
Calendar Examples
<tes:offset>0</tes:offset>
<tes:conflictcalendarid>1</tes:conflictcalendarid>
</tes:calendarcondition>
<reqops xmlns="" xmlns:ns3="http://purl.org/atom/ns#" objid="uid-21">
<setprop objid="uid-2" writeprop="calendarId" readprop="@result"/>
</reqops>
</tes:CalendarCondition.create>
</entry>
Calendar Example 7 – Create a Daily Calendar with Details and a Condition
The following REST API call creates a daily calendar with details and a condition.
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<title>HTTP</title>
<tes:Calendar.create xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendar>
<tes:weekdays>NYYYYYN</tes:weekdays>
<tes:frequency>1</tes:frequency>
<tes:type>2</tes:type>
<tes:id>-2</tes:id>
<tes:createtime>2015-06-06T00:52:53-0700</tes:createtime>
<tes:monthdays>NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN</tes:monthdays>
<tes:ownername>testuser</tes:ownername>
<tes:intsect>N</tes:intsect>
<tes:description>My description -- Deployed from WIN-7EL8UQCDFGG 
by domain\testuser on 06/06/2015 12:53:08 AM</tes:description>
<tes:name>test_daily</tes:name>
<tes:untildate>2018-12-31T00:00:00-0800</tes:untildate>
<tes:fromdate>2014-01-01T00:00:00-0800</tes:fromdate>
<tes:untildateasstring>20181231000000</tes:untildateasstring>
<tes:offset>0</tes:offset>
<tes:forecastdate>2018-12-31T00:00:00-0800</tes:forecastdate>
<tes:ownerid>1</tes:ownerid>
<tes:pub>Y</tes:pub>
<tes:weeks>NNNNN</tes:weeks>
<tes:forecastdateasstring>20181231000000</tes:forecastdateasstring>
<tes:months>NNNNNNNNNNNN</tes:months>
<tes:fromdateasstring>20140101000000</tes:fromdateasstring>
<tes:typestring>Daily</tes:typestring>
</tes:calendar>
<reqops xmlns="" xmlns:ns3="http://purl.org/atom/ns#" objid="uid-2"/>
</tes:Calendar.create>
<tes:CalendarCondition.create xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:calendarcondition>
<tes:actionid>0</tes:actionid>
<tes:calendarname>test_daily</tes:calendarname>
<tes:sequencenumber>1</tes:sequencenumber>
<tes:action>1</tes:action>
<tes:calendarid>208</tes:calendarid>
<tes:offset>0</tes:offset>
<tes:conflictcalendarid>1</tes:conflictcalendarid>
</tes:calendarcondition>
<reqops xmlns="" xmlns:ns3="http://purl.org/atom/ns#" objid="uid-21">
<setprop objid="uid-2" writeprop="calendarId" readprop="@result"/>
</reqops>
</tes:CalendarCondition.create>
</entry>
Calendar Example 8 – Delete a Detail in a Calendar
The following REST API call deletes a calendar detail (CalendarChild).