List of user preferences
HPE Compute Ops Management API (latest)
HPE Compute Operations Management provides a Restful API to customers who want to manage their devices programmatically or through a command line. The API enables customers to invoke operations or tasks such as list devices, see device details, device health, and manage their device's firmware.
UPDATED API ENDPOINTS
Compute Ops Management now supports the HPE GreenLake API endpoints (<region>.api.greenlake.hpe.com
). The Guide contains more information about this change.
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/
https://us-west.api.greenlake.hpe.com/
https://eu-central.api.greenlake.hpe.com/
https://ap-northeast.api.greenlake.hpe.com/
Request
Retrieves the user preferences for the current user. The returned list will contain only one element if preferences have been set, zero otherwise.
URI PATH PREFIX RENAME
This API now supports the URI path prefix /compute-ops-mgmt
which used to be /compute-ops
. The /compute-ops
prefix is deprecated and might become unresponsive after Tuesday, April 1, 2025. The Guide provides more information about this change.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Total number of items in the collection that match the filter query, if one was provided in the request
Default notification choice for server critical notifications that are service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server critical notifications that are non-service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server warning-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
{ "offset": 0, "count": 1, "total": 1, "items": [ { … } ] }
Request
Purpose
When a server is added to Compute Ops Management, these attributes will be used to set the initial email notification subscription choices for event and daily health email notifications.
Event notification selections are made such that each selection increases the scope of the set of events that will be included. The order of event selections from minimum to maximum scope are
criticalNotification
- Events that are marked as service events. These events may have severity levels of 'warning' or 'critical'criticalNonServiceNotification
- Events that are not service events but have a severity level of 'critical'warningNotification
- Events that are not service events but have a severity level of 'warning'
Note that healthNotification
is not part of the event notification set and may be set independently.
Since each selection builds on the previous one, there exists a hierarchy between selections that must be maintained. The table below shows which notification combinations are valid. All other combinations will result in an HTTP 400 error
criticalNotification | criticalNonServiceNotification | warningNotification |
---|---|---|
False | False | False |
True | False | False |
True | True | False |
True | True | True |
Initial values
All values are initially false with the result being that no notifications will be sent.
URI PATH PREFIX RENAME
This API now supports the URI path prefix /compute-ops-mgmt
which used to be /compute-ops
. The /compute-ops
prefix is deprecated and might become unresponsive after Tuesday, April 1, 2025. The Guide provides more information about this change.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"criticalNotification": true
}'
Successful Response
Default notification choice for server critical notifications that are service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server critical notifications that are non-service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server warning-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
{ "id": "36e00ac2-16fb-4dd5-8495-7e6df82fc15e", "type": "compute-ops-mgmt/user-preference", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true }
Request
Retrieve a user preference object specified by its id
URI PATH PREFIX RENAME
This API now supports the URI path prefix /compute-ops-mgmt
which used to be /compute-ops
. The /compute-ops
prefix is deprecated and might become unresponsive after Tuesday, April 1, 2025. The Guide provides more information about this change.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{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/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
User preference object
Default notification choice for server critical notifications that are service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server critical notifications that are non-service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server warning-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
{ "id": "36e00ac2-16fb-4dd5-8495-7e6df82fc15e", "type": "compute-ops-mgmt/user-preference", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true }
Request
Purpose
When a server is added to Compute Ops Management, these attributes will be used to set the initial email notification subscription choices for event and daily health email notifications.
Event notification selections are made such that each selection increases the scope of the set of events that will be included. The order of event selections from minimum to maximum scope are
criticalNotification
- Events that are marked as service events. These events may have severity levels of 'warning' or 'critical'criticalNonServiceNotification
- Events that are not service events but have a severity level of 'critical'warningNotification
- Events that are not service events but have a severity level of 'warning'
Note that healthNotification
is not part of the event notification set and may be set independently.
Since each selection builds on the previous one, there exists a hierarchy between selections that must be maintained. The table below shows which notification combinations are valid. All other combinations will result in an HTTP 400 error
criticalNotification | criticalNonServiceNotification | warningNotification |
---|---|---|
False | False | False |
True | False | False |
True | True | False |
True | True | True |
Initial values
All values are initially false with the result being that no notifications will be sent.
URI PATH PREFIX RENAME
This API now supports the URI path prefix /compute-ops-mgmt
which used to be /compute-ops
. The /compute-ops
prefix is deprecated and might become unresponsive after Tuesday, April 1, 2025. The Guide provides more information about this change.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/user-preferences/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PUT \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/user-preferences/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"criticalNotification": true
}'
Successful Response
Default notification choice for server critical notifications that are service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server critical notifications that are non-service-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
Default notification choice for server warning-level events via email.
Override the default notification choice by updating the notification settings for a server (see /compute-ops-mgmt/v1beta2/servers/{id}/notifications).
{ "id": "36e00ac2-16fb-4dd5-8495-7e6df82fc15e", "type": "compute-ops-mgmt/user-preference", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true }