Retrieve alert data for a Server specified by the id of the server
- Clear power utilization alerts for a server
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-remote/openapi/
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. Server IDs contain a +, which must be encoded as %2B.
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 |
Servers can be filtered by:
- biosFamily
- createdAt
- firmwareBundleUri
- hardware and all nested properties
- host and all nested properties
- id
- name †
- oneview and all nested properties
- platformFamily
- processorVendor
- resourceUri
- state and all nested properties
† When searching for a server using the name filter, you must supply the serial number of the server, not the hostname. To filter by hostname use host/hostname instead of name
The following examples are not an exhaustive list of all possible filtering options.
Return servers where a property equals a value. <property> eq <value>
Return servers where a nested property equals a value. <property>/<nestedProperty> eq <value>
Return servers where a property equals a value, using a url. <property>%20eq%20%27<value>
Return servers where a property does not equal a value not <property> eq <value>
Return servers with populated property. not <property> eq null
Return servers where property contains a value. contains(<property>, <value>)
Return servers where property is populated and property contains value. not <property> eq null and contains(<property>, <value>)
Return servers where property is one of multiple values. <property>/<nestedProperty> in (<value>,<value>)
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}/alerts
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/alerts
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/alerts
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-remote/openapi/compute-ops-mgmt/v1/servers/{id}/alerts
- 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}/alerts' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Server's Alert Data
ServiceNow incident details. This data will only be available when a ServiceNow incident is created for a service event.
ID of the automatically created HPE Support Case. This will be available only when a HPE Support Case is created for a service event.
{ "offset": 0, "count": 1, "total": 12, "items": [ { … } ] }
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.
Alerts resources for power utilization alerts
Primary identifier for the server given by the system.
Unique identifier assigned to alert messages.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/clear-alert
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/clear-alert
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/clear-alert
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-remote/openapi/compute-ops-mgmt/v1/servers/{id}/clear-alert
- 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/P43990-121+SYN1002J11/clear-alert' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"alerts": [
{}
]
}'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}/analyze-os-install
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/analyze-os-install
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}/analyze-os-install
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-remote/openapi/compute-ops-mgmt/v1/servers/{id}/analyze-os-install
- 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/P43990-121+SYN1002J11/analyze-os-install' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "serverHasStorageVolume": true }