API reference documentation for the HPE GreenLake Consumption Analytics Reports API
HPE GreenLake Consumption Analytics Reports API (1.0.0)
https://us-west.api.greenlake.hpe.com/
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/consumption-analytics/public/openapi/consumption-analytics-latest/v2/public-reports-v2/
- Production - US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/consumption-analytics/public/openapi/consumption-analytics-latest/v2/public-reports-v2/consumption-analytics/v2/reports
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'success
{ "count": 2, "total": 2, "offset": 0, "items": [ { … }, { … } ] }
The request body containing the details for executing the report.
The list of columns to include in the report. Each column specifies a field and optional aggregation function.
The reference name of the field to include in the report column. Example system fields: 'sys_Provider_s', 'sys_Cost_f'. Example tag and custom fields: 'ext_f8693b3b4c321cc6c7b711be5733f288_s', 'ext_b8697b3b4c391cc6c7b711be5733f333_f'.
Defines whether the filter uses a relative date range or an absolute date range.
The end date of the filter range. Used when the type is ABSOLUTE.
A predefined time period relative to the current date. Used when the type is set to RELATIVE.
- Production - US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/execute
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/consumption-analytics/public/openapi/consumption-analytics-latest/v2/public-reports-v2/consumption-analytics/v2/reports/execute
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/execute \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"dateFilter": {
"type": "RELATIVE",
"relativeRange": "LAST_7_DAYS"
},
"fieldFilters": [
{
"name": "sys_Provider_s",
"operator": "STARTS_WITH",
"values": [
"H"
]
}
]
},
"columns": [
{
"fieldName": "sys_Provider_s"
},
{
"fieldName": "sys_MeterName_s"
},
{
"fieldName": "sys_Cost_f",
"aggFunction": "SUM"
}
]
}'success
{ "totalCount": 2, "items": [ { … }, { … } ] }
The inclusive end date of the absolute date range (YYYY-MM-DD). Required when relativeDate is not provided.
A predefined time period relative to today. Takes precedence over startDate and endDate when both are provided.
- Production - US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/{id}/execute
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/consumption-analytics/public/openapi/consumption-analytics-latest/v2/public-reports-v2/consumption-analytics/v2/reports/{id}/execute
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/7021d69d-de13-44bd-97e1-dbb05eef0759/execute \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"startDate": "2026-01-01",
"endDate": "2026-03-31"
}'success
{ "totalCount": 2, "items": [ { … }, { … } ] }