Retrieve average CPU, Memory bus, I/O bus or CPU interconnect utilization data. Accepts multiple metric types.
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.
Start date for utilization data retrieval.
End date for utilization data retrieval.
The metric type for which utilization data is to be retrieved.
URI of the resource for which utilization data is to be retrieved. This can be a server, filter or group URI.
Limit the resources operated on by tags or return only the subset of resources that match all the filter tags.
Limit the resources operated on by an endpoint or return only the subset of resources that match the filter.
NOTE: The filter query parameter must use URL encoding.
Limit the properties of the resource returned in a successful response. When applied to write operations, select controls only the properties that are returned, not which properties are operated on. All properties are returned if the select parameter is omitted.
The value of the select query parameter is a comma separated list of properties to include in the response. Nested properties use / as a separator, e.g. select=interfaces/name selects the name property within an interfaces object.
For operations that return paginated collections, select operates on the resources in the collection. The pagination properties like count and items are always included even when select is specified.
Select only the id and name properties of the resource
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 Westhttps://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/utilization-averages
- API endpoint for EU Centralhttps://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/utilization-averages
- API endpoint for AP Northeasthttps://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/utilization-averages
- Mock serverhttps://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/utilization-averages
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/utilization-averages?start-date=string&end-date=string&metric-type=CPU_UTILIZATION&resource-uri=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "averages": [ { … } ] }