Unique Server identifier
- Patch 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
Retrieve data for a Server specified by its id
Servers without a valid subscription will not return the following:
- hardware.health
- hardware.memoryMb
- hardware.formFactor
- hardware.bmc
- hardware.platform
- hardware.powerState
- hardware.indicatorLed
- firmwareInventory
- softwareInventory
- lastFirmwareUpdate
- host
- firmwareBundleUri
- tags
- originIp
- biosFamily
- storageInventory
- processorVendor
- autoIloFwupdate
- serverGeneration
- connectionType
- oneview
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}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- 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}
- 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}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": "string", "name": "myServer", "type": "compute-ops-mgmt/server", "resourceUri": "/compute-ops-mgmt/v1beta2/servers/875765-S01+1M512501AB", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "platformFamily": {}, "serverGeneration": "GEN_10", "hardware": { "serialNumber": "string", "model": "string", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "productId": "string", "powerState": "UNKNOWN", "indicatorLed": "UNKNOWN", "health": { … }, "platform": "string", "formFactor": "string", "bmc": { … }, "memoryMb": {} }, "state": { "managed": true, "connected": true, "connectedModifiedAt": "2019-08-24T14:15:22Z", "subscriptionState": "REQUIRED", "subscriptionTier": "Enhanced", "subscriptionExpiresAt": "2019-08-24T14:15:22Z" }, "firmwareInventory": [ { … } ], "softwareInventory": [ { … } ], "firmwareBundleUri": "string", "lastFirmwareUpdate": { "status": "OK", "attemptedAt": "2019-08-24T14:15:22Z", "firmwareInventoryUpdates": [ … ] }, "tags": { "location": "San Jose" }, "processorVendor": "Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz", "biosFamily": "string", "host": { "osName": "string", "osVersion": "string", "hostname": "string", "osDescription": "string", "osType": 0 }, "autoIloFwUpdate": true, "oneview": { "applianceUri": "string", "maintenanceMode": true, "name": "string", "state": "string" }, "lastFullInventoryCollectionAt": "2019-08-24T14:15:22Z", "lastFullInventoryCollectionPowerState": "string" }
Request
Partially update a Server specified by its id
Servers without a valid subscription will not return the following:
- hardware.health
- hardware.memoryMb
- hardware.formFactor
- hardware.bmc
- hardware.platform
- hardware.powerState
- hardware.indicatorLed
- firmwareInventory
- softwareInventory
- lastFirmwareUpdate
- host
- firmwareBundleUri
- tags
- originIp
- biosFamily
- storageInventory
- processorVendor
- autoIloFwupdate
- serverGeneration
- connectionType
- oneview
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/merge-patch+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.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- 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}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PATCH \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{}'{ "id": "string", "name": "myServer", "type": "compute-ops-mgmt/server", "resourceUri": "/compute-ops-mgmt/v1beta2/servers/875765-S01+1M512501AB", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "platformFamily": {}, "serverGeneration": "GEN_10", "hardware": { "serialNumber": "string", "model": "string", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "productId": "string", "powerState": "UNKNOWN", "indicatorLed": "UNKNOWN", "health": { … }, "platform": "string", "formFactor": "string", "bmc": { … }, "memoryMb": {} }, "state": { "managed": true, "connected": true, "connectedModifiedAt": "2019-08-24T14:15:22Z", "subscriptionState": "REQUIRED", "subscriptionTier": "Enhanced", "subscriptionExpiresAt": "2019-08-24T14:15:22Z" }, "firmwareInventory": [ { … } ], "softwareInventory": [ { … } ], "firmwareBundleUri": "string", "lastFirmwareUpdate": { "status": "OK", "attemptedAt": "2019-08-24T14:15:22Z", "firmwareInventoryUpdates": [ … ] }, "tags": { "location": "San Jose" }, "processorVendor": "Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz", "biosFamily": "string", "host": { "osName": "string", "osVersion": "string", "hostname": "string", "osDescription": "string", "osType": 0 }, "autoIloFwUpdate": true, "oneview": { "applianceUri": "string", "maintenanceMode": true, "name": "string", "state": "string" }, "lastFullInventoryCollectionAt": "2019-08-24T14:15:22Z", "lastFullInventoryCollectionPowerState": "string" }
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}
- 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}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/servers/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'