The HPE GreenLake for Wellness APIs facilitates the automation of IT operations by enabling you to monitor wellness events related to your infrastructure. To further streamline integration workflows, these APIs provide various filtering options and KPI metrics.
HPE GreenLake for Wellness (v2)
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/
https://global.api.greenlake.hpe.com/wellness/v2/
Events
Wellness events provide health insights about your HPE products and services and show information about automatically created support cases. Wellness events allow you to:
- Identify potential vulnerabilities before they affect your environment.
- Proactively monitor the health of your HPE products and services.
- View AI-powered recommendations about events.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/support-cases
https://global.api.greenlake.hpe.com/wellness/v2/support-cases
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/support-cases \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"event": {
"resourceUri": "/wellness/v2/events/00000010-7e93-4046-9adc-1397cd6ab2d1",
"id": "00000010-7e93-4046-9adc-1397cd6ab2d1"
}
}'
null
Request
Retrieves a list of support cases associated with wellness events. The results are in descending order of creation time, so that the most recent support cases are listed first.
Pagination: This endpoint exclusively supports cursor-based pagination, using the next
query parameter.
Filtering: The following are the supported filter parameters :
event/id
— Theevent/id
filter parameter only supports theeq
operator and its value should be a valid wellness event ID.caseNumber
status
createdAt
updatedAt
event/condition/severity
event/status/currentState
event/productName
event/serviceName
event/createdAt
event/updatedAt
The filter
query parameter is used to filter a set of resources. The returned set of resources matches the criteria in the filter query parameter. The value of the filter query parameter is a subset of OData V4 filter expressions consisting of simple comparison operations joined by logical operators.
The select
query parameter is used to limit the properties returned for support cases. The value of the select
query parameter is a comma separated list of properties. All properties are returned if the select parameter is omitted.
Note: Only the total
property is supported.
Retrieve only the count of support cases for the current filter.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/support-cases
https://global.api.greenlake.hpe.com/wellness/v2/support-cases
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/support-cases \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
OK
Monotonically increasing update counter to track the support case version.
The first and last name of the user that escalated the wellness event. Only relevant to manually escalated cases.
The customer relationship management (CRM) system used to create the support case.
Total number of items (support cases) for the current filter criteria.
{ "items": [ { … }, { … } ], "count": 2, "next": "000000d0-a3c9-4dc2-aacb-d85973efbdf3", "total": 300 }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/openapi-v2/support-cases/{id}
https://global.api.greenlake.hpe.com/wellness/v2/support-cases/{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/wellness/public/openapi/wellness-service/openapi-v2/support-cases/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "id": "41495911", "caseNumber": "47758", "type": "wellness/support-case", "resourceUri": "/wellness/v2/support-cases/41495911", "event": { "resourceUri": "/wellness/v2/events/00006e2e-e02c-4cb3-ba40-d9d8ae2fdb24", "id": "00006e2e-e02c-4cb3-ba40-d9d8ae2fdb24" }, "createdAt": "2023-11-12T12:18:59.983Z", "updatedAt": "2024-02-02T16:32:19.983Z", "generation": 1, "status": "open" }
Async Operations
Asynchronous APIs are APIs that do not return data immediately. This means you can make multiple requests at once. A high-level overview of the asynchronous API process:
- You make a request to an asynchronous API endpoint.
- HPE GreenLake returns an acknowledgment, typically a
202 Accepted
, and provides a URI to the async-operation resource in theLocation
header. - HPE GreenLake continues to process the request.
- When completed, HPE GreenLake returns the requested information.