Aggregation level for server hardware inventory report data.
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/
Sort expression in the form <attribute> asc|desc.
Supported attributes for each group-by type:
SERVER:name,id,model,processor,management,serverGeneration,memoryGiB,processorCount,deviceCount,powerSupplyCount,fanCount,driveCount,formFactorSERVER_MODEL:model,countSERVER_GENERATION:serverGeneration,countSERVER_PROCESSOR:processor,countSERVER_MEMORY:memoryGiB,countSERVER_MANAGEMENT:management,countDEVICES:deviceName,partNumber,assemblyNumber,technology,linkLanes,deviceCount,serverCountDEVICE_DETAIL:deviceName,deviceSerialNumber,location,firmwareVersion,serverId,serverNameDEVICE_AND_SERVER:serverId,serverName,deviceName,deviceCountDRIVES:driveModel,driveName,protocol,mediaType,capacityGB,speedGbps,driveCount,serverCountDRIVE_DETAIL:serverId,serverName,driveModel,driveName,driveSerialNumber,location,driveEnclosure,firmware,failurePredicted,predictedMediaLifeLeftPercentDRIVE_AND_SERVER:serverId,serverName,driveModel,driveName,driveCountDRIVE_LIFE_PERCENTAGE:remainingDriveLifeRange,driveCount,serverCountDRIVE_LIFE_DETAIL:serverId,serverName,driveSerialNumber,remainingDriveLifeRange,location,driveEnclosure,failurePredicted,predictedMediaLifeLeftPercentDRIVE_LIFE_AND_SERVER:serverId,serverName,remainingDriveLifeRange,driveCount
Filter expression in the form <attribute> eq '\<value>'.
Supported attributes for each group-by type:
SERVER:model,processor,management,serverGeneration,memoryGiBDEVICES,DEVICE_DETAIL,DEVICE_AND_SERVER:deviceNameDRIVES,DRIVE_DETAIL,DRIVE_AND_SERVER:driveModelDRIVE_LIFE_PERCENTAGE,DRIVE_LIFE_DETAIL,DRIVE_LIFE_AND_SERVER:remainingDriveLifeRange
Limit the resources operated on by tags or return only the subset of resources that match all the filter tags.
URI of the resource for which server hardware inventory report data is to be retrieved. This can be a server, filter or group URI.
When set to true, the response contains details for servers that do not have inventory data available.
When excluded-servers=true, sort and filter query parameters are not supported.
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/v1beta1/server-hardware-inventory-report
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-hardware-inventory-report
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-hardware-inventory-report
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/server-hardware-inventory-report
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-hardware-inventory-report?group-by=SERVER' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Data rows for the selected group-by value.
- item-server
- item-server-model
- item-server-generation
- item-server-processor
- item-server-memory
- item-server-management
- item-devices
- item-device-detail
- item-device-and-server
- item-drives
- item-drive-detail
- item-drive-and-server
- item-drive-life-percentage
- item-drive-life-detail
- item-drive-life-and-server
Item shape for group-by=SERVER.
{ "offset": 0, "count": 10, "total": 125, "items": [ { … } ] }