Unique server identifier
- List inventories 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-latest/
Request
Retrieves external storage hosts and volume details for a server specified by the server 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.
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/v1beta2/servers/{id}/external-storage-details
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/external-storage-details
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/external-storage-details
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta2/servers/{id}/external-storage-details
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/external-storage-details' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "generation": 1, "volumeDetails": [ { … } ], "hostName": "string", "hostOs": "UNKNOWN", "hostGroups": [ { … } ] }
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.
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/v1beta2/servers/{id}/inventory
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "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" } }
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.
Content-Type header must designate 'application/json' in order for the request to be performed.
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.
Below is an example payload for fetching chassis and processor inventory which is a subset.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta2/servers/{id}/inventory
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
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 '{}'{ "chassis": { "data": [ … ] }, "processor": { "data": [ … ] } }