Add Report Schedule For Hierarchy - 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

vCenter Chargeback API Programming Guide
Protocol.registerProtocol("https", new Protocol("https", (ProtocolSocketFactory) new
String uri = "https://" + baseURL + "/vCenter-CB/api/hierarchy/" + hierarchyId;
try {
} finally {
}
}

Add Report Schedule for Hierarchy

You can schedule reports to be generated at regular intervals. Add a report schedule for the hierarchy by using 
the Report Schedule API. 
To add a report schedule for a hierarchy
1
Call the Report Schedule API by using the following URL in your program.
POST <API base URL>/reportSchedule
For example,
POST https://123.123.123.123/vCenter-CB/api/reportSchedule
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>
<!-- The CostModels section will be present only for cost comparison reports -->
30
FakeSSLCertificateSocketFactory(), 443));
get = new GetMethod(uri);
client.executeMethod(get);
System.out.println(get.getResponseBodyAsString());
if (get != null) {
get.releaseConnection();
}
<MetaData>
<Name>Name</Name>
<Description>Description</Description>
<ReportType>COST_REPORT</ReportType>
<OwnedBy>1</OwnedBy>
<OwnedByName>MyUser</OwnedByName>
<ReportPeriodType>WEEKLY</ReportPeriodType>
<ReportPeriod>
<Weekly>
<StartDayOfWeek>1</StartDayOfWeek>
</Weekly>
</ReportPeriod>
<Hierarchies>
<Hierarchy id="590">
<Entities>
<Entity id="592" costModelId="30" />
<Entity id="593" costModelId="30" />
</Entities>
</Hierarchy>
</Hierarchies>
<CostModels>
<CostModel id="0" />
<CostModel id="2" />
</CostModels>
<ComputingResources>
<ComputingResource id="1" />
<ComputingResource id="2" />
<ComputingResource id="5" />
<ComputingResource id="6" />
<ComputingResource id="9" />
<ComputingResource id="10" />
</ComputingResources>
VMware, Inc.

Advertisement

Table of Contents
loading

Table of Contents