The HPE GreenLake for Reporting service provides a collection of RESTful APIs for generating reports, retrieving supported columns and filters, monitoring asynchronous operations, and querying the status of reports.
HPE GreenLake for Reporting (v1alpha1)
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/reporting/public/openapi/reporting-nbapi-v1alpha1/
https://global.api.greenlake.hpe.com/
Limit the resources operated on by an endpoint or when used with a multiple-GET endpoint, return only the subset of resources that match the filter. The filter grammar is a subset of OData 4.0.
NOTE: The filter query parameter must use URL encoding. Most clients do this automatically with inputs provided to them specifically as query parameters. Encoding must be done manually for any query parameters provided as part of the URL.
The reserved characters !
#
$
&
'
(
)
*
+
,
/
:
;
=
?
@
[
]
must be encoded with percent encoded equivalents.
For example, the value P06760-B21+2M212504P8
must be encoded as P06760-B21%2B2M212504P8
when it is used in a query parameter.
CLASS | EXAMPLES |
---|---|
Types | integer, decimal, timestamp, string, boolean, null |
Operations | eq, ne, gt, ge, lt, le, in |
Logic | and, or, not |
Return results where a property equals a value. <property> eq <value>
The order in which to return the resources in the collection.The value of the sort query parameter is a comma separated list of sort expressions. Each sort expression is a property name optionally followed by a direction indicator asc (ascending) or desc (descending).The first sort expression in the list defines the primary sort order, the second defines the secondary sort order, and so on. If a direction indicator is omitted the default direction is ascending.
Order ascending by name
Order resources ascending by name and then by descending by createdAt
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/reporting/public/openapi/reporting-nbapi-v1alpha1/reporting/v1alpha1/statuses
https://global.api.greenlake.hpe.com/reporting/v1alpha1/statuses
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/reporting/public/openapi/reporting-nbapi-v1alpha1/reporting/v1alpha1/statuses?filter=string&sort=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "count": 0, "limit": 0, "offset": 0, "items": [ { … } ] }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/reporting/public/openapi/reporting-nbapi-v1alpha1/reporting/v1alpha1/statuses/{id}
https://global.api.greenlake.hpe.com/reporting/v1alpha1/statuses/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/reporting/public/openapi/reporting-nbapi-v1alpha1/reporting/v1alpha1/statuses/3fa85f64-5717-4562-b3fc-2c963f66afa6 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "string", "name": "string", "description": "string", "resourceUri": "string", "status": "string", "stage": "string", "message": "string", "isExpired": "string", "reportType": "string", "reportDownloadUrl": "string", "userName": "string", "recipientEmailId": "string", "startTime": "2019-08-24T14:15:22Z", "statusTimestamp": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }