With the HPE GreenLake APIs for Subscription Management you can add subscriptions, unclaim subscriptions, get subscription information, and update auto-subscription settings for your HPE GreenLake workspace.
HPE GreenLake APIs for Subscription Management (latest)
https://global.api.greenlake.hpe.com/
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription/
Request
Returns a paginated list of per-device-type subscription suggestions. Each item represents one device-type group with a scored list of suggested subscriptions ordered highest-confidence first.
Suggestion cap: Each recommendation group returns at most 20 suggestions.
NOTE: You must have read permission for the Subscription service to call this API.
- Url hostname
https://global.api.greenlake.hpe.com/subscriptions/v2alpha1/recommendations
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription/subscriptions/v2alpha1/recommendations
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://global.api.greenlake.hpe.com/subscriptions/v2alpha1/recommendations \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Successful response
Unique recommendation identifier (one per device-type group).
Resource type discriminator. Always subscription/suggestion.
The category of suggestion. Currently always subscription.
Shared identifier across all recommendation items in the same API response.
Human-readable recommendation title summarizing the device types.
Human-readable detail text including unlicensed device count and available subscription count.
Sorted list of device type names in this group. These device types share the same set of eligible subscription tiers.
Scored list of suggested subscriptions, ordered by score descending. suggestions[0] is the highest-confidence option. Capped at 20 per group.
Composite confidence score (0.0-1.0). Higher is more confident. Computed from capacity fit (60% weight) and urgency/expiry proximity (40% weight). Suggestions are sorted in descending order by this value.
Subscription details for this suggestion.
The unique identifier for the subscription.
The subscription's business key.
Subscription tier identifier, for example, FOUNDATION_AP, ADVANCED_AP, ENHANCED_COMPUTE.
Human-readable tier description.
Total licensed seats for this subscription.
Currently unassigned (available) seats.
Subscription expiry date in ISO-8601 format.
Shows a single recommendation group for AP/IAP devices. Two subscription suggestions are returned, each with full subscription details including tier, capacity, and expiry.
{ "items": [ { … } ], "count": 1, "total": 1, "offset": 0 }