Cost History statement details of any AWS service category via Rest API
search cancel

Cost History statement details of any AWS service category via Rest API

book

Article ID: 418028

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

Cloud Health platform Reporting API allows REST-based access to data presented in OLAP Reports. 

Statement details Cost history of category 'AWS services'. 

Environment

AWS Services.

Resolution

Adding dimension of 'AWS Service Category' will fetch the total cost and not the statement details. 

curl -H  'Authorization: Bearer XXXXX98900000YYYY' -H ' Accept: application/json'  https://chapi.cloudhealthtech.com/olap_reports/cost/history?dimensions[]=AWS-Service-Category&measures[]=cost&filters[]=AWS-Service-Category:select:other&filters[]=time:select:-4&client_api_id=*****&collapse_null_arrays=1

 

For Statement details need to use the Graphql API.

https://help.cloudhealthtech.com/graphql-api/#createflexreport