VMware Cloud Community
tejit2004
Contributor
Contributor

Not able to access rawReport API

Hi,

Whenever I am trying to use /api/rawReport API, I am encountering with the below error.

<ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat">
  <ns1:faultstring xmlns:ns1="http://cxf.apache.org/bindings/xformat">.No operation matching request path /api/rawReport/ is found, ContentType : */*, Accept : */*.</ns1:faultstring>
</ns1:XMLFault>

I am using below XML to access this API.

Below is the URL : https://My Ip Address/vCenter-CB/api/rawReport

<?xml version="1.0" encoding="UTF-8"?>
<Request>
<ReportTemplates>
<ReportTemplate>
<Name>Sample Report</Name>
<Description>Description</Description>
<ReportType>COST_REPORT</ReportType>
<Hierarchies>
<Hierarchy id="613">
<Entities>
<Entity id="0"/>
</Entities>
</Hierarchy>
</Hierarchies>
<CostModels>
<CostModel id="1"/>
</CostModels>
<ComputingResources>
<ComputingResource id="1"/>
</ComputingResources>
<BillingScheduleType>NOW</BillingScheduleType>
<BillingPeriod>
<Now>
<StartDate></StartDate>
<EndDate></EndDate>
</Now>
</BillingPeriod>
<DataFilter>
<DataDepth>1</DataDepth>
<ExcludeFilters>
<Filter id="CategorizedCosts"/>
<Filter id="CategorizedUsage"/>
<Filter id="InformationMessages"/>
<Filter id="CostDetails\"/>
</ExcludeFilters>
</DataFilter>
</ReportTemplate>
</ReportTemplates>
</Request>

Can someone please test and let me know what is the proble?

Tags (1)
Reply
0 Kudos
3 Replies
dprabhakaran
Enthusiast
Enthusiast

Hello,

RawReport API was deprecated long time back and was removed in Chargeback v2.5.

Thanks

Diwakar

Reply
0 Kudos
tejit2004
Contributor
Contributor

Hi Diwakar,

Thanks for your reply.

Can you please suggest me any billing API for the same in Chargeback as I want to bill the customers based on Memory, Storage and vCPU.

Thanks,

Tejas Trivedi

Reply
0 Kudos
dprabhakaran
Enthusiast
Enthusiast

Tejas Trivedi,

   Chargeback provides rich set of reporting APIs to pull usage/cost details from Chargeback server. Please refer to API documentation for details.


Regards

Diwakar

Reply
0 Kudos