Successful Response
- Update event and health notifications for others
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://us-west.api.greenlake.hpe.com/
https://eu-central.api.greenlake.hpe.com/
https://ap-northeast.api.greenlake.hpe.com/
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/
Request
Configure your notification settings for the provided server.
For criticalNotification, criticalNonServiceNotification, and warningNotification, 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'
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 |
healthNotification, powerResetNotification, and disconnectNotification do not build on each other and may be configured independently.
healthNotificationenables the daily summary health report for the server.powerResetNotificationenables notifications for out-of-band power operations.disconnectNotificationenables notifications to be sent when the server remains in the disconnected or not monitored state after the configured number of hours. A null value in this field disables disconnect and not monitored notifications.
All values are initially 'off' (false or null) with the result being that no notifications will be sent.
Tenant-Acid header can be used by an MSP workspace to make API calls on behalf of their tenant by specifying the tenant's application customer ID.
In order to make such an API call, the Bearer token must belong to an MSP workspace and this header value must be the application customer ID of a tenant within the MSP workspace. Use the /compute-ops-mgmt/v1beta1/accounts API to determine the application customer IDs for your tenant accounts.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1/servers/{id}/notifications
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PUT \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"criticalNotification": true
}'{ "serverId": "string", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true, "powerResetNotification": true, "disconnectNotification": 1 }
Request
Configure the notification settings for the provided server on behalf of other users in your workspace. The recipients field expects a list of emails; the users provided in this list will be configured based on the settings passed in the data field.
For criticalNotification, criticalNonServiceNotification, and warningNotification, 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'
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 |
healthNotification, powerResetNotification, and disconnectNotification do not build on each other and may be configured independently.
healthNotificationenables the daily summary health report for the server.powerResetNotificationenables notifications for out-of-band power operations.disconnectNotificationenables notifications to be sent when the server remains in the disconnected or not monitored state after the configured number of hours. A null value in this field disables disconnect and not monitored notifications.
All values are initially 'off' (false or null) with the result being that no notifications will be sent.
Tenant-Acid header can be used by an MSP workspace to make API calls on behalf of their tenant by specifying the tenant's application customer ID.
In order to make such an API call, the Bearer token must belong to an MSP workspace and this header value must be the application customer ID of a tenant within the MSP workspace. Use the /compute-ops-mgmt/v1beta1/accounts API to determine the application customer IDs for your tenant accounts.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1/servers/{id}/notifications
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/notifications' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"criticalNotification": true
},
"recipients": [
"string"
]
}'{ "serverId": "string", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true, "powerResetNotification": true, "disconnectNotification": 1 }
Tenant-Acid header can be used by an MSP workspace to make API calls on behalf of their tenant by specifying the tenant's application customer ID.
In order to make such an API call, the Bearer token must belong to an MSP workspace and this header value must be the application customer ID of a tenant within the MSP workspace. Use the /compute-ops-mgmt/v1beta1/accounts API to determine the application customer IDs for your tenant accounts.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/security-parameters
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/security-parameters
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/security-parameters
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1/servers/{id}/security-parameters
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/security-parameters' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": "string", "overallSecurityStatus": "OK", "iloSecurityParams": [ { … } ], "type": "compute-ops-mgmt/server/security-parameter", "resourceUri": "string" }