API reference documentation for the HPE GreenLake Consumption Analytics Reports v2 API
HPE GreenLake Consumption Analytics Reports v2 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.
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.
A list of field-level filter conditions that apply to the report. Each condition specifies a field, comparison operator, and one or more values.
The comparison operator used to evaluate the field's value.
- 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": "ABSOLUTE"
},
"fieldFilters": [
{
"name": "string",
"operator": "EQ",
"values": []
}
]
}
}'success
{ "totalCount": 2, "items": [ { … }, { … } ] }
- 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 '{}'success
{ "totalCount": 2, "items": [ { … }, { … } ] }