Skip to content

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.

Download OpenAPI description
Languages
Servers
Mock server

https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/

API endpoint for US West

https://us-west.api.greenlake.hpe.com/

API endpoint for EU Central

https://eu-central.api.greenlake.hpe.com/

API endpoint for AP Northeast

https://ap-northeast.api.greenlake.hpe.com/

accounts - v1beta1

Operations

activation-keys - v1beta1

Operations

activation-tokens - v1beta1

Operations

activities - v1beta2

Operations

ahs-files - v1beta1

Operations

appliance-firmware-bundles - v1

Operations

appliance-firmware-bundles - v1beta1

Operations

async-operations - v1

Operations

async-operations - v1beta1

Operations

energy-over-time - v1beta1

Operations

energy-by-entity - v1beta1

Operations

external-services - v1beta1

Operations

filters - v1beta1

Operations

firmware-bundles - v1

Operations

firmware-bundles - v1beta2

Operations

groups - v1

Operations

groups - v1beta3

Operations

groups - v1beta2

Operations

job-templates - v1beta2

Operations

jobs - v1

Operations

jobs - v1beta3

Operations

jobs - v1beta2

Operations

metrics-configurations - v1

Operations

oneview-appliances - v1beta1

Operations

oneview-settings - v1beta1

Operations

oneview-server-templates - v1beta1

Operations

List all OneView server templates

Request

Retrieve data for all OneView server templates

Security
Bearer
Query
limitinteger[ 0 .. 50 ]

The maximum number of records to return.

Default 25
Example: limit=10
offsetinteger>= 0

Zero-based resource offset to start the response from

Default 0
Example: offset=10
sortstring

The order in which to return the resources in the collection.

The value of the sort query parameter is a comma separated list of sort expressions. Each sort expression is a property name optionally followed by a direction indicator asc (ascending) or desc (descending).

The first sort expression in the list defines the primary sort order, the second defines the secondary sort order, and so on. If a direciton indicator is omitted the default direction is ascending.

Examples:

Order resources ascending by name

sort=name asc

Order resources ascending by name and then by descending by createdAt

sort=name,createdAt desc
filterstring

Limit the resources operated on by an endpoint or when used with a multiple-GET endpoint, return only the subset of resources that match the filter. The filter grammar is a subset of OData 4.0.

NOTE: The filter query parameter must use URL encoding. Most clients do this automatically with inputs provided to them specifically as query parameters. Encoding must be done manually for any query parameters provided as part of the URL.
The reserved charecters ! # $ & ' ( ) * + , / : ; = ? @ [ ] must be encoded with percent encoded equivalents. Server IDs contain a +, which must be encoded as %2B.
For example: the value P06760-B21+2M212504P8 must be encoded as P06760-B21%2B2M212504P8 when it is used in a query parameter.

CLASSEXAMPLES
Typesinteger, decimal, timestamp, string, boolean, null
Operationseq, ne, gt, ge, lt, le, in
Logicand, or, not

Server templates can be filtered by:

  • uri
  • applianceId
Examples:

Return resources where applianceId == d42c2b9b-b366-4e40-96a2-95e1138cf968

filter=eq(applianceId, 'd42c2b9b-b366-4e40-96a2-95e1138cf968')

Return resources where uri contains a56e80bc-6ee4-4414-82e7-36dc7f79a62e

filter=contains(uri,'a56e80bc-6ee4-4414-82e7-36dc7f79a62e')
Headers
Tenant-Acidstring(uuid)

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.

curl -i -X GET \
  https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/oneview-server-templates \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
countinteger>= 0required

Number of items returned

Example: 1
offsetinteger>= 0required

Zero-based resource offset

itemsArray of objectsrequired
items[].​createdAtstring(date-time)

Time of OneView server template creation

items[].​descriptionstring

Description of the oneview server template

Example: "Server profile template"
items[].​idstring(uuid)

Primary identifier for the OneView server template given by system

items[].​applianceIdstring(uuid)

Primary identifier for the appliance where OneView server template is created

items[].​applianceNamestring

Name of the appliance where OneView server template is created

Example: "devcat-dhcp-cent77-53"
items[].​namestring

Name of OneView server template

Example: "Server_profile_template"
items[].​uristring(uri)

URI of the server template in the OneView

Example: "/rest/server-profile-templates/a56e80bc-6ee4-4414-82e7-36dc7f79a62e"
items[].​attributesobject

Representation of the OneView server-profile-template REST resource

items[].​statusstring

Health status of the resource

Example: "OK"
items[].​statestring or null

Current state of the resource

items[].​subscriptionstring or null

Subscription of the source appliance

items[].​typestring

Type of the resource

Value "compute-ops-mgmt/oneview-server-template"
items[].​updatedAtstring(date-time)

Time of last server template modified

totalinteger>= 0required

Total number of items in the collection that match the filter query, if one was provided in the request

Example: 12
Response
application/json
{ "offset": 0, "count": 1, "total": 12, "items": [ {} ] }

Get a OneView server template by template id

Request

Get a specific OneView server template by template id.

Security
Bearer
Path
idstring(uuid)required

Unique identifier of OneView server template

Headers
Tenant-Acidstring(uuid)

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.

curl -i -X GET \
  'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/oneview-server-templates/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful Response

Bodyapplication/json
createdAtstring(date-time)

Time of OneView server template creation

descriptionstring

Description of the oneview server template

Example: "Server profile template"
idstring(uuid)

Primary identifier for the OneView server template given by system

applianceIdstring(uuid)

Primary identifier for the appliance where OneView server template is created

applianceNamestring

Name of the appliance where OneView server template is created

Example: "devcat-dhcp-cent77-53"
namestring

Name of OneView server template

Example: "Server_profile_template"
uristring(uri)

URI of the server template in the OneView

Example: "/rest/server-profile-templates/a56e80bc-6ee4-4414-82e7-36dc7f79a62e"
attributesobject

Representation of the OneView server-profile-template REST resource

statusstring

Health status of the resource

Example: "OK"
statestring or null

Current state of the resource

subscriptionstring or null

Subscription of the source appliance

typestring

Type of the resource

Value "compute-ops-mgmt/oneview-server-template"
updatedAtstring(date-time)

Time of last server template modified

Response
application/json
{ "createdAt": "2019-08-24T14:15:22Z", "description": "Server profile template", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "applianceId": "4a333222-8502-40ae-83cc-1e5b22f9d675", "applianceName": "devcat-dhcp-cent77-53", "name": "Server_profile_template", "uri": "/rest/server-profile-templates/a56e80bc-6ee4-4414-82e7-36dc7f79a62e", "attributes": {}, "status": "OK", "state": "string", "subscription": "string", "type": "compute-ops-mgmt/oneview-server-template", "updatedAt": "2019-08-24T14:15:22Z" }

reports - v1beta2

Operations

schedules - v1beta2

Operations

server-locations - v1beta1

Operations

server-settings - v1beta1

Operations

settings - v1

Operations

settings - v1beta1

Operations

servers - v1

Operations

servers - v1beta2

Operations

server-warranty - v1beta2

Operations

user-preferences - v1

Operations

user-preferences - v1beta1

Operations

utilization-over-time - v1beta1

Operations

utilization-by-entity - v1beta1

Operations

webhooks - v1beta1

Operations