Reschedule A Report - VMware VCENTER CHARGEBACK 1.5 - API Manual

Vcenter chargeback api programming guide
Hide thumbs Also See for VCENTER CHARGEBACK 1.5 - API:
Table of Contents

Advertisement

Reschedule a Report

You can update a report schedule using the Reschedule Report API. The Reschedule Report API updates the 
schedule information. If you want to update the entity to cost model mapping, you must delete the schedule 
and create a new schedule.
To reschedule a report
1
Call the Reschedule Report API by using the following URL in your program.
PUT <API base URL>/reportSchedule/{scheduleId}
For example,
PUT https://123.123.123.123/vCenter-CB/api/reportSchedule/5
The following is an example request XML.
<?xml version="1.0" encoding="UTF-8"?>
<Request xmlns="http://www.vmware.com/vcenter/chargeback/1.5.0">
<ReportSchedules>
<ReportSchedule>
</ReportSchedule>
</ReportSchedules>
</Request>
VMware, Inc.
<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>
Chapter 3 Using vCenter Chargeback with a Billing System
35

Advertisement

Table of Contents
loading

Table of Contents