API reference documentation for the HPE GreenLake Consumption Analytics API.
HPE GreenLake Consumption Analytics 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/
- 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.
- 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 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.
- US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/execute/csv
- 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/csv
- 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/csv \
-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"
}
]
}'No content- US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/usage-fields
- 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/usage-fields
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/usage-fields \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
The default function for this field; it will be used if nothing is provided.
The internal reference name of the field, used when specifying report columns.
The list of aggregation functions that are valid for this field. Use these values when specifying the aggFunction on a report column.
The value type of the field, which determines what kinds of data it stores and which aggregation functions are applicable.
[ { "defaultFunction": "NONE", "displayName": "Cost", "fieldName": "sys_Cost_f", "validFunctions": [ … ], "valueType": "STRING" } ]
- US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/{id}
- 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}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/7021d69d-de13-44bd-97e1-dbb05eef0759 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Success
A list of charts defined within the report, each describing a specific data visualization.
The list of fields (columns) included in the report table.
A short summary of the report’s purpose or contents.
Indicates whether the report output is pivoted by a time-based dimension (for example, by month).
{ "charts": [ { … } ], "columns": [ { … } ], "created": { "email": "string", "id": "string", "name": "string", "time": "2019-08-24T14:15:22Z" }, "description": "Tracks monthly consumption grouped by service and region.", "filter": { "dateFilter": { … }, "fieldFilters": [ … ] }, "forecastCfg": { "enableForecast": true, "forecastPeriod": 0, "interval": "DAY" }, "id": "7021d69d-de13-44bd-97e1-dbb05eef0759", "lastUpdated": { "email": "string", "id": "string", "name": "string", "time": "2019-08-24T14:15:22Z" }, "name": "Monthly Usage Breakdown", "owner": true, "pivot": true, "shared": true, "sharing": { "type": "PUBLIC" } }
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.
- 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": [ { … }, { … } ] }
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.
- US West
https://us-west.api.greenlake.hpe.com/consumption-analytics/v2/reports/{id}/execute/csv
- 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/csv
- 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/csv \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"startDate": "2026-01-01",
"endDate": "2026-03-31"
}'No content