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
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 West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/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/v1/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/v1/servers/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": "string", "name": "myServer", "type": "compute-ops-mgmt/server", "resourceUri": "/compute-ops-mgmt/v1/servers/875765-S01+1M512501AB", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "platformFamily": {}, "serverGeneration": "GEN_8", "hardware": { "serialNumber": "string", "model": "string", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "productId": "string", "powerState": "UNKNOWN", "indicatorLed": "UNKNOWN", "health": { … }, "platform": "string", "formFactor": "string", "bmc": { … }, "memoryMb": {}, "manufacturer": "string" }, "state": { "managed": true, "connected": true, "connectedModifiedAt": "2019-08-24T14:15:22Z", "subscriptionState": "REQUIRED", "subscriptionTier": "STANDARD", "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
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/v1/servers/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/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/v1/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/v1/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/v1/servers/875765-S01+1M512501AB", "generation": 1, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "platformFamily": {}, "serverGeneration": "GEN_8", "hardware": { "serialNumber": "string", "model": "string", "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "productId": "string", "powerState": "UNKNOWN", "indicatorLed": "UNKNOWN", "health": { … }, "platform": "string", "formFactor": "string", "bmc": { … }, "memoryMb": {}, "manufacturer": "string" }, "state": { "managed": true, "connected": true, "connectedModifiedAt": "2019-08-24T14:15:22Z", "subscriptionState": "REQUIRED", "subscriptionTier": "STANDARD", "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/v1/servers/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1/servers/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1/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/v1/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/v1/servers/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'