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/
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.
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.
Request
Retrieves a list of all asynchronous operations organized in descending order based on their creation time. This ensures the most recent asynchronous operations are presented first.
Pagination: This endpoint exclusively supports cursor-based pagination.
Filtering: The following are the supported filter parameters:
state
— Thestate
filter parameter only supports theeq
operator and its value should be a valid string.createdAt
updatedAt
endedAt
startedAt
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.
Specifies the number of asynchronous operations to be returned.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/async-operations
https://global.api.greenlake.hpe.com/wellness/v2/async-operations
- 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/async-operations \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
OK
Primary identifier for the asynchronous operation given by the system.
The time at which this asynchronous operation is submitted.
The time at which this asynchronous operation is last updated.
Time at which the operation completed (entered a SUCCEEDED
, FAILED
, or CANCELLED
state).
URI reference to the resource that initiated the operation.
Percent progress of the operation as an integer value of 0 to 100.
API Error Object.
A unique machine-friendly, but human-readable identifier for the error
Number of seconds recommended for clients to poll for updates.
Number of minutes after the last update before the operation moves into the TIMEDOUT
state.
Number of items (asynchronous operations) returned.
Total number of items (asynchronous operation) for the current filter criteria.
{ "items": [ { … }, { … } ], "count": 2, "next": "0001b67f-9518-4d0f-9b17-70cec7763632", "total": 300 }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/wellness/public/openapi/wellness-service/async-operations/{id}
https://global.api.greenlake.hpe.com/wellness/v2/async-operations/{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/async-operations/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
OK
Time at which the operation completed (entered a SUCCEEDED
, FAILED
, or CANCELLED
state).
URI reference to the resource that initiated the operation.
Percent progress of the operation as an integer value of 0 to 100.
API Error Object.
A unique machine-friendly, but human-readable identifier for the error
Number of seconds recommended for clients to poll for updates.
Number of minutes after the last update before the operation moves into the TIMEDOUT
state.
{ "id": "00006e2e-e02c-4cb3-ba40-d9d8ae2fdb24", "type": "wellness/async-operation", "generation": 1, "createdAt": "2024-01-01T12:00:00Z", "updatedAt": "2024-02-01T12:00:00Z", "startedAt": "2024-01-01T12:00:00Z", "endedAt": "2024-01-01T12:05:00Z", "sourceResourceUri": "/wellness/v2/events/00000010-7e93-4046-9adc-1397cd6ab2d1", "state": "SUCCEEDED", "logMessages": null, "progressPercent": 100, "error": null, "suggestedPollingIntervalSeconds": 30, "timeoutMinutes": 1, "results": [ { … } ] }