1.5
Table Of Contents
- vCenter Chargeback API Programming Guide
- Contents
- About This Book
- vCenter Chargeback APIs
- Understanding the Workflow
- Using vCenter Chargeback with a Billing System
- Index
VMware, Inc. 35
Chapter 3 Using vCenter Chargeback with a Billing System
Reschedule a Report
YoucanupdateareportscheduleusingtheRescheduleReportAPI.TheRescheduleReportAPIupdatesthe
scheduleinformation.Ifyouwanttoupdatetheentitytocostmodelmapping,youmustdeletetheschedule
andcreateanewschedule.
To reschedule a report
1 CalltheRescheduleReportAPIbyusingthefollowingURLin
yourprogram.
PUT <API base URL>/reportSchedule/{scheduleId}
Forexample,
PUT https://123.123.123.123/vCenter-CB/api/reportSchedule/5
ThefollowingisanexamplerequestXML.
<?xml version="1.0" encoding="UTF-8"?>
<Request xmlns="http://www.vmware.com/vcenter/chargeback/1.5.0">
<ReportSchedules>
<ReportSchedule>
<MetaData>
<ReportPeriodType>MONTHLY</ReportPeriodType>
<ReportPeriod>
<Monthly>
<StartDayOfMonth>1</StartDayOfMonth>
</Monthly>
</ReportPeriod>
</MetaData>
<ScheduleDetail>
<FireTime>
<Hour>0</Hour>
<Minute>0</Minute>
</FireTime>
<Recurrence type="MONTHLY">
<DayOfMonth>5</DayOfMonth>
<RepeatInterval>0</RepeatInterval>
</Recurrence>
<Range>
<StartDate>05/01/2010</StartDate>
<Count>-1</Count>
</Range>
</ScheduleDetail>
<Email>
<Subject>Subject</Subject>
<Message>Message</Message>
<ToAddresses>
<EmailId>sample@testcompany.com</EmailId>
</ToAddresses>
<ReplyTo>
<EmailId>sample@testcompany.com</EmailId>
</ReplyTo>
<CcAddresses>
<EmailId>sample@testcompany.com</EmailId>
</CcAddresses>
</Email>
</ReportSchedule>
</ReportSchedules>
</Request>