Skip to content

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.

Download OpenAPI description
Languages
Servers
API endpoint for US West

https://us-west.api.greenlake.hpe.com/

API endpoint for EU Central

https://eu-central.api.greenlake.hpe.com/

API endpoint for AP Northeast

https://ap-northeast.api.greenlake.hpe.com/

Mock server

https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/

accounts - v1beta1

Operations

activation-keys - v1beta1

Operations

activation-tokens - v1beta1

Operations

activities - v1beta2

Operations

ahs-files - v1beta1

Operations

secure-gateway-appliances - v1beta2

Operations

appliance-firmware-bundles - v1

Operations

appliance-firmware-bundles - v1beta1

Operations

approval-policy - v1beta2

Operations

approval-request - v1beta2

Operations

async-operations - v1

Operations

async-operations - v1beta1

Operations

energy-over-time - v1beta1

Operations

energy-by-entity - v1beta1

Operations

external-services - v1beta1

Operations

filters - v1beta1

Operations

firmware-bundles - v1

Operations

firmware-bundles - v1beta2

Operations

groups - v1

Operations

groups - v1beta3

Operations

groups - v1beta2

Operations

job-templates - v1beta2

Operations

jobs - v1

Operations

jobs - v1beta3

Operations

jobs - v1beta2

Operations

metrics-configurations - v1

Operations

oneview-appliances - v1beta1

Operations

oneview-settings - v1beta1

Operations

oneview-server-templates - v1beta1

Operations

reports - v1beta2

Operations

schedules - v1beta2

Operations

server-locations - v1beta1

Operations

server-settings - v1beta1

Operations

settings - v1

Operations

settings - v1beta1

Operations

servers - v1

Operations

servers - v1beta2

Operations

List inventories for a server

Request

Retrieve firmware, software, storage inventories, PCI devices and smart update tool settings for a server specified by the id of the server

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.

Security
Bearer
Path
idstringrequired

Unique Server identifier

Headers
Tenant-Acidstring(uuid)

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.

curl -i -X GET \
  'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Server's inventory Data

Bodyapplication/json
idstringrequired

Primary identifier for the device given by the system

typestringrequired

Type of the resource

Value "compute-ops-mgmt/server/inventory"
serialstring
productIdstring
lastFullInventoryCollectionAtstring or null
Any of:

Last complete inventory collection time

string(date-time)
lastFullInventoryCollectionPowerStatestring

Power state of the server when the complete inventory is collected

firmwareobject

Firmware Inventory

softwareobject

Software Inventory

storageobject

Storage Inventory

smartStorageobject

Smart Storage Inventory

deviceobject

Device Inventory

smartUpdateToolInventoryobject

Smart Update Tool Settings Inventory

chassisobject

Chassis Inventory

memoryobject

Memory Inventory

networkAdapterobject

Network Adapter Inventory

processorobject

Processor Inventory

powerSupplyobject

Power Suppy Inventory

thermalobject

Thermal Inventory

Response
application/json
{ "id": "string", "type": "compute-ops-mgmt/server/inventory", "serial": "string", "productId": "string", "lastFullInventoryCollectionAt": "2019-08-24T14:15:22Z", "lastFullInventoryCollectionPowerState": "string", "firmware": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "software": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "storage": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "smartStorage": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "device": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "smartUpdateToolInventory": { "modified": "2019-08-24T14:15:22Z", "data": [] }, "chassis": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "memory": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "networkAdapter": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "processor": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "powerSupply": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" }, "thermal": { "modified": "2019-08-24T14:15:22Z", "data": [], "collectionState": "string" } }

List subset of a Server Inventory

Request

Lists the subset of the server hardware inventory. The request body can either specify a subset of attributes, or can be empty, and a subset of attributes or the full inventory response is returned.

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.

Security
Bearer
Path
idstring(productId+serialNumber)required

Unique Server identifier

Example: P43990-121+SYN1002J11
Query
formatstring(json)required

Format for subset inventory response

Example: format=json
Headers
Content-Typestringrequired

Content-Type header must designate 'application/json' in order for the request to be performed.

Value "application/json"
Tenant-Acidstring(uuid)

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.

Bodyapplication/jsonrequired

Below is an example payload for fetching chassis and processor inventory which is a subset.

chassisobject

Chassis Inventory

processorobject

Processor Inventory

curl -i -X POST \
  'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/P43990-121+SYN1002J11/inventory?format=json' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

Subset of a Server Inventory

Bodyapplication/json
chassisobject

Chassis Inventory

processorobject

Processor Inventory

Response
application/json
{ "chassis": { "data": [] }, "processor": { "data": [] } }

Get the event and health notification status for a server

Request

Purpose

Retrieves the current values of the event and health notification options.

  • For criticalNotification a notification will be sent if the value is true, and no notification will be sent if the value is false.
  • For the following properties a notification will be sent if the value is true. No notification will be sent if the value is null or false.
    • criticalNonServiceNotification
    • warningNotification
    • healthNotification
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.

Security
Bearer
Path
idstringrequired
curl -i -X GET \
  'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/notifications' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful Response

Bodyapplication/json
serverIdstring
criticalNotificationboolean
criticalNonServiceNotificationboolean or null
warningNotificationboolean or null
healthNotificationboolean or null
Response
application/json
{ "serverId": "string", "criticalNotification": true, "criticalNonServiceNotification": true, "warningNotification": true, "healthNotification": true }

server-warranty - v1beta2

Operations

user-preferences - v1

Operations

user-preferences - v1beta1

Operations

utilization-over-time - v1beta1

Operations

utilization-by-entity - v1beta1

Operations

webhooks - v1beta1

Operations