Name of the AHS file which needs to be uploaded.
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://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/
https://us-west.api.greenlake.hpe.com/
https://eu-central.api.greenlake.hpe.com/
https://ap-northeast.api.greenlake.hpe.com/
Request
A pre-signed URL can be created by issuing this POST call with correct payload for the task. The pre-signed URL allows the user to upload the selected file directly and securely to the Compute Ops Management data store provided by Amazon Web Services (AWS) Simple Storage Service (S3).
The pre-signed URL is valid for a maximum of 10 minutes. The user must upload the file within this time period, or the link will expire, and the upload will fail.
Note: Use the “parameters” list to create a pre-signed URL response to fill all the values in <>. It will form the upload command.
An example curl command to upload an AHS file is shown below:
curl -i -F key=AHS_DISCONNECTED/427275fcddef29436/c924e770-...-9219276d2a5f/upload_file_presigned_post.ahs
-F x-amz-algorithm=AWS4-HMAC-SHA256 -F x-amz-credential=example_credential -F x-amz-date=20250213T000000Z
-F x-amz-security-token=example_token
-F policy=example_policy
-F x-amz-signature=example_signature -F file=@P05172-B21+2M2D110304_FWUFailure.ahs
'https://dev-hpecomputesupport-us-west-2.s3.amazonaws.com/'
Sample Success Response:
HTTP/1.1 200 Connection Established
Proxy-Agent: Zscaler/6.2
HTTP/1.1 100 Continue
HTTP/1.1 204 No Content
x-amz-id-2: LYH6S+m7DrtihxwwXGNm8l7DFsJNwlBS5ps0+vOuucVy2dzDd9OMBZLeund2vJvUUtBWiQETYn0=
x-amz-request-id: 3RNFF7X985Y2M0WV
Date: Mon, 16 Dec 2024 14:17:04 GMT
x-amz-server-side-encryption: aws:kms
x-amz-server-side-encryption-aws-kms-key-id: arn:aws:kms:us-west-2:647619633241:key/ebcad3a6-b6e2-4314-acf1-447f9f38f9bc
x-amz-server-side-encryption-bucket-key-enabled: true
ETag: "6e215e86cc62e52ad1ff5f184edd483d"
Location: https://dev-hpecomputesupport-us-west-2.s3.amazonaws.com/AHS_DISCONNECTED%2F427275fcddef11ebaeaea25b204e9436%2F72684583-59cf-4a81-b4c4-c4e586c8b0c1%2FP05172-B21+2M2D110304_FWUFailure.ahs
Server: AmazonS3
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fileName": "2024-08-26_19-20-42_P05172-B21+2M2D110304_FWUFailure.ahs"
}'
Successful Response
Unique file identifier (File UUID) of the ahs-files resource given by the system.
Bucket url where file is being uploaded.
Key value pairs attributes of parameters list supplied for uploading the AHS file to AWS S3 bucket.
{ "id": "017a9224-4d6e-4adb-9c78-321f95c7bb2c", "type": "compute-ops-mgmt/ahs-file", "baseUrl": "https://dev-hpecomputesupport-us-west-2.s3.amazonaws.com/", "parameters": [ { … }, { … }, { … }, { … }, { … }, { … }, { … } ] }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
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/ahs-files \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Successful Response
Array of ahs file parsing status responses.
Unique file identifier (File UUID) of the ahs-files resource given by the system.
Time of ahs-file creation.
Time of ahs-file updation.
Resource URI of the ahs-file.
AWS S3 bucket pre-signed URL generated while uploading the AHS file.
Key value pairs attributes of parameters list supplied for uploading the AHS file to AWS S3 bucket.
{ "offset": 0, "count": 1, "total": 12, "items": [ { … } ] }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
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/ahs-files/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Successful Response
Unique file identifier (File UUID) of the ahs-files resource given by the system.
Resource URI of the ahs-file.
Key value pairs attributes of parameters list supplied for uploading the AHS file to AWS S3 bucket.
{ "id": "017a9224-4d6e-4adb-9c78-321f95c7bb2c", "type": "compute-ops-mgmt/ahs-file", "generation": 1, "createdAt": "2024-12-05 10:25:23.302032Z", "updatedAt": "2024-12-05 10:25:46.562205Z", "resourceUri": "/compute-ops-mgmt/v1beta1/ahs-files/017a9224-4d6e-4adb-9c78-321f95c7bb2c", "name": "HPE_MXQ0xxxT3_20250108_Server.ahs", "baseUrl": null, "parameters": [], "parsingStatus": { "status": "ANALYSIS_SUCCESS", "statusModifiedAt": "2024-12-05 10:25:49.562196Z", "statusReason": "string", "errorCode": "string" }, "parsingResults": { "components": { … } }, "hardware": { "productId": "P2xx99-B21", "serialNumber": "MXQ0xxxT3" } }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PATCH \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"parsingStatus": {
"status": "ANALYSIS_FAILED"
}
}'
OK
Unique file identifier (File UUID) of the ahs-files resource given by the system.
Resource URI of the ahs-file.
AWS S3 bucket pre-signed URL generated while uploading the AHS file.
Key value pairs attributes of parameters list supplied for uploading the AHS file to AWS S3 bucket.
{ "id": "017a9224-4d6e-4adb-9c78-321f95c7bb2c", "type": "compute-ops-mgmt/ahs-file", "generation": 2, "createdAt": "2024-12-05 10:25:23.302032Z", "updatedAt": "2024-12-05 10:25:46.562205Z", "resourceUri": "/compute-ops-mgmt/v1beta1/ahs-files/017a9224-4d6e-4adb-9c78-321f95c7bb2c", "name": "HPE_MXQ0xxxT3_20250108_Server.ahs", "baseUrl": null, "parameters": [], "parsingStatus": { "status": "ANALYSIS_FAILED", "statusModifiedAt": "2024-12-05 10:25:49.562196Z", "statusReason": "due to intermittent issue. Retry the upload operation (error code: AHSE-101).", "errorCode": "AHSE-101" }, "parsingResults": {}, "hardware": { "productId": "", "serialNumber": "" } }
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}/parse
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/parse
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/parse
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/parse
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}/parse' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"components": [
"INVENTORY"
]
}'
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/ahs-files/{id}/download
- API endpoint for US West
https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/download
- API endpoint for EU Central
https://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/download
- API endpoint for AP Northeast
https://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/ahs-files/{id}/download
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
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/ahs-files/{id}/download?filename=MXQ0xxxT3-20241205-1025-SERVER_INVENTORY.json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "ProductName": "ProLiant ML350 Gen10", "SerialNumber": "MXQOxxxT3", "ServerID": "R4xx5A:MXQOxxxT3", "DateProcessed": "2025-04-02 12:47:25.868511+00:00 UTC", "PowerState": "Not Available", "Chassis": [ { … } ], "ILO": [ { … } ], "BIOS": [ { … } ], "Processor": [ { … }, { … } ], "Device": [ { … }, { … } ], "Memory": [ { … }, { … } ], "Storage": [ { … }, { … } ], "Storage_NVME": [], "Network": [], "Power": [ { … }, { … } ], "Thermal-FanInformation": [ { … }, { … }, { … }, { … }, { … }, { … } ], "Firmware": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "Applications": [], "Drivers": [], "SDcards": [ { … } ], "IntegratedManagementLogs": [], "ILOEventLogs": [], "SecurityEventLogs": [], "PowerSupplySummary": [ { … } ], "Thermal-SensorTemperatureInformationInCelsius": [ { … }, { … }, { … } ] }