Get location details with id of the servers associated with the location. The associted servers for the location includes both direct connect and OneView managed servers.
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
Overview
License
Languages
Servers
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/
Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/
- API endpoint for US Westhttps://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}
- API endpoint for EU Centralhttps://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}
- API endpoint for AP Northeasthttps://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}
- Mock serverhttps://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/server-locations/{location_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Successful Response
Time of the server-location's creation in UTC.
Example: "2023-12-25T01:04:21.799937+00:00"
Time of the server-location's last update in UTC.
Example: "2023-12-25T01:06:30.799489+00:00"
The URI of this resource.
Example: "/compute-ops-mgmt/v1beta1/server-locations/b870f080-6448-48c5-b23a-d04f2d489174"
Response
application/json
{ "id": "36e00ac2-16fb-4dd5-8495-7e6df82fc15e", "type": "compute-ops-mgmt/server-location", "generation": 1, "createdAt": "2023-12-25T01:04:21.799937+00:00", "updatedAt": "2023-12-25T01:06:30.799489+00:00", "resourceUri": "/compute-ops-mgmt/v1beta1/server-locations/b870f080-6448-48c5-b23a-d04f2d489174", "servers": [ "177751-Y66+89177751666", "320888-H80+89320888180" ] }
- API endpoint for US Westhttps://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- API endpoint for EU Centralhttps://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- API endpoint for AP Northeasthttps://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- Mock serverhttps://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"servers": [
"177751-Y66+89177751666",
"320888-H80+89320888180"
]
}'- API endpoint for US Westhttps://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- API endpoint for EU Centralhttps://eu-central.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- API endpoint for AP Northeasthttps://ap-northeast.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- Mock serverhttps://developer.greenlake.hpe.com/_mock/docs/greenlake/services/compute-ops-mgmt/public/openapi/compute-ops-mgmt-latest/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
'https://us-west.api.greenlake.hpe.com/compute-ops-mgmt/v1beta1/server-locations/{location_id}/servers?id=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'