Retrieves all active approval requests
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/
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 characters ! # $ & ' ( ) * + , / : ; = ? @ [ ] 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.
| CLASS | EXAMPLES |
|---|---|
| Types | integer, decimal, timestamp, string, boolean, null |
| Operations | eq, ne, gt, ge, lt, le, in |
| Logic | and, or, not |
Approval requests can be filtered by:
- approvableName
- approvableResource/id
- approvableResource/type
- approvalState
- createdAt
- operation/id
- operation/type
- policy/id
- updatedAt
The following examples are not an exhaustive list of all possible filtering options.
Return approval requests where a property equals a value. <property> eq <value>
Return approval requests where a property is less than or equal to a value. <property> le <value>
Return approval requests where property contains a value. contains(<property>, <value>)
Return approval requests where a property is greater than a value, using url encoding. <property>%20gt%20%27<value>
Return approval requests where a property does not equal a value not <property> eq <value>
Return approval requests where multiple properties can be matched with values <property> eq <value1> and <property> eq <value2>
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta2/approval-requests
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Primary identifier for request given by the system.
Time of request entry creation
Time of last request update
URI to the request ifself (i.e. a self link)
approvableName is used to identify the type of operation that requires approval. A case-sensitive field that must contain a value from the "Approvable Name" column below. The actions that are supported for approval follow:
| Approvable Name | Description |
|---|---|
| Update firmware | Updating the firmware of server or servers in a group. |
| Apply internal storage configuration | Applying internal storage configuration to the server or servers in a group. |
| Install operating system image | Installing the operating system image on the server or servers in a group. |
| Apply external storage configuration | Applying external storage configuration to the server or servers in a group. |
| Power on | Powering on the server. |
| Power off | Powering off the server. |
| Reset | Resetting the server. |
| Cold boot | Cold booting the server. |
| Update iLO firmware | Updating the iLO firmware on the server or servers in a group |
| Apply server settings (BIOS and iLO) | Applying server settings (BIOS and iLO) to the server or servers in a group |
The approvableResource is the identifier of the resource for which the request is created. This can refer to a server or group.
This field indicates the action that is being performed on the resource. The action can be a job or a scheduled job. When a request is created, the operation field will be populated with the job or schedule details.
The state of the request.
Minimum number of approvers required for the request to be approved
{ "offset": 0, "count": 1, "total": 12, "items": [ { … } ] }
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_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/approval-requests/{request_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/approval-requests/{request_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
Primary identifier for request given by the system.
URI to the request ifself (i.e. a self link)
approvableName is used to identify the type of operation that requires approval. A case-sensitive field that must contain a value from the "Approvable Name" column below. The actions that are supported for approval follow:
| Approvable Name | Description |
|---|---|
| Update firmware | Updating the firmware of server or servers in a group. |
| Apply internal storage configuration | Applying internal storage configuration to the server or servers in a group. |
| Install operating system image | Installing the operating system image on the server or servers in a group. |
| Apply external storage configuration | Applying external storage configuration to the server or servers in a group. |
| Power on | Powering on the server. |
| Power off | Powering off the server. |
| Reset | Resetting the server. |
| Cold boot | Cold booting the server. |
| Update iLO firmware | Updating the iLO firmware on the server or servers in a group |
| Apply server settings (BIOS and iLO) | Applying server settings (BIOS and iLO) to the server or servers in a group |
The approvableResource is the identifier of the resource for which the request is created. This can refer to a server or group.
This field indicates the action that is being performed on the resource. The action can be a job or a scheduled job. When a request is created, the operation field will be populated with the job or schedule details.
{ "type": "compute-ops-mgmt/approval-request", "resourceUri": "/compute-ops-mgmt/v1beta2/approval-requests/30fa7c27-64a0-4331-9462-73b0e004d4b9", "id": "30fa7c27-64a0-4331-9462-73b0e004d4b9", "policy": { "id": "f196db43-b56b-441c-a60e-73ca3bb53c5d", "resourceUri": "/compute-ops-mgmt/v1beta2/approval-policies/f196db43-b56b-441c-a60e-73ca3bb53c5d", "type": "compute-ops-mgmt/approval-policy" }, "approvableName": "Reset", "approvableResource": { "id": "215881-H98+8899215881198831", "resourceUri": "/compute-ops-mgmt/v1/servers/215881-H98+8899215881198831", "type": "compute-ops-mgmt/server" }, "operation": { "id": "e0f1ac57-9fab-468f-afab-67d6746267ee", "resourceUri": "/compute-ops-mgmt/v1/jobs/e0f1ac57-9fab-468f-afab-67d6746267ee", "type": "compute-ops-mgmt/job" }, "requester": { "firstName": "Test", "lastName": "User1", "email": "anybody@email.org" }, "approvalState": "APPROVED", "createdAt": "2025-03-01T10:50:33.736935+00:00", "updatedAt": "2025-03-01T11:05:00.554140+00:00", "generation": 8450, "requestRemarks": "string", "cancelledBy": "string", "minApprovers": 2, "requestData": { "approvals": { … } } }
Set the state of the approval request. The request can be cancelled only if it is in the PENDING state and only the requester has the authority to cancel the request.
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_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/approval-requests/{request_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/approval-requests/{request_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{}'OK
Primary identifier for request given by the system.
URI to the request ifself (i.e. a self link)
approvableName is used to identify the type of operation that requires approval. A case-sensitive field that must contain a value from the "Approvable Name" column below. The actions that are supported for approval follow:
| Approvable Name | Description |
|---|---|
| Update firmware | Updating the firmware of server or servers in a group. |
| Apply internal storage configuration | Applying internal storage configuration to the server or servers in a group. |
| Install operating system image | Installing the operating system image on the server or servers in a group. |
| Apply external storage configuration | Applying external storage configuration to the server or servers in a group. |
| Power on | Powering on the server. |
| Power off | Powering off the server. |
| Reset | Resetting the server. |
| Cold boot | Cold booting the server. |
| Update iLO firmware | Updating the iLO firmware on the server or servers in a group |
| Apply server settings (BIOS and iLO) | Applying server settings (BIOS and iLO) to the server or servers in a group |
The approvableResource is the identifier of the resource for which the request is created. This can refer to a server or group.
This field indicates the action that is being performed on the resource. The action can be a job or a scheduled job. When a request is created, the operation field will be populated with the job or schedule details.
{ "type": "compute-ops-mgmt/approval-request", "resourceUri": "/compute-ops-mgmt/v1beta2/approval-requests/30fa7c27-64a0-4331-9462-73b0e004d4b9", "id": "30fa7c27-64a0-4331-9462-73b0e004d4b9", "policy": { "id": "f196db43-b56b-441c-a60e-73ca3bb53c5d", "resourceUri": "/compute-ops-mgmt/v1beta2/approval-policies/f196db43-b56b-441c-a60e-73ca3bb53c5d", "type": "compute-ops-mgmt/approval-policy" }, "approvableName": "Reset", "approvableResource": { "id": "215881-H98+8899215881198831", "resourceUri": "/compute-ops-mgmt/v1/servers/215881-H98+8899215881198831", "type": "compute-ops-mgmt/server" }, "operation": { "id": "e0f1ac57-9fab-468f-afab-67d6746267ee", "resourceUri": "/compute-ops-mgmt/v1/jobs/e0f1ac57-9fab-468f-afab-67d6746267ee", "type": "compute-ops-mgmt/job" }, "requester": { "firstName": "Test", "lastName": "User1", "email": "anybody@email.org" }, "approvalState": "APPROVED", "createdAt": "2025-03-01T10:50:33.736935+00:00", "updatedAt": "2025-03-01T11:05:00.554140+00:00", "generation": 8450, "requestRemarks": "string", "cancelledBy": "string", "minApprovers": 2, "requestData": { "approvals": { … } } }
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}/approve
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}/approve
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}/approve
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta2/approval-requests/{request_id}/approve
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta2/approval-requests/{request_id}/approve' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "approvalState": "APPROVED", "remarks": "string" }