With the HPE GreenLake APIs for Subscription Management you can add subscriptions, get subscription information, and update auto-subscription settings for your HPE GreenLake workspace.
HPE GreenLake APIs for Subscription Management (latest)
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription-latest/
https://global.api.greenlake.hpe.com/
Request
Get all configured auto-subscriptions settings in a workspace.
NOTE: You need to have the view permission for the Devices and subscription service to invoke this API.
Rate limits are enforced on this API. 25 requests per minute is supported per workspace. The API returns 429
if this threshold is breached.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings
- Url hostname
https://global.api.greenlake.hpe.com/subscriptions/v1/auto-subscription-settings
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Successful response
Time of auto-subscription creation.
The unique identifier of the tenant.
Time of last auto-subscription update.
Type of the resource
{ "items": [ { … } ], "count": 10, "offset": 0, "total": 50 }
Request
Retrieve the configured auto-subscriptions settings in a workspace.
NOTE: You need to have view permission for the Devices and subscription service to invoke this API.
Rate limits are enforced on this API. 25 requests per minute is supported per workspace. The API returns 429
if this threshold is breached.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings/{id}
- Url hostname
https://global.api.greenlake.hpe.com/subscriptions/v1/auto-subscription-settings/{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/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "id": "64343c3c-3016-4234-baee-765651aa4bb3", "createdAt": "2024-02-07T11:20:35.290Z", "updatedAt": "2024-02-07T11:22:35.800Z", "generation": 0, "type": "subscriptions/auto-subscription-settings", "resourceUri": "string", "autoSubscriptionSettings": [ { … } ] }
Request
Update the configured auto-subscriptions managed in a workspace.
In the payload, you can pass a list of deviceType
and tier
combinations to be updated or created. If the combination of deviceType
and tier
is already configured, it is updated. Otherwise, the combination is created. If you need to remove settings for one or more combination of deviceType
and tier
, pass tier
as null for the required deviceType
.
NOTE: You need to have the edit permission for the Devices and subscription service to invoke this API.
Rate limits are enforced on this API. 25 requests per minute is supported per workspace. The API returns 429
if this threshold is breached.
- Mock server
https://stage-developer-portal-hpe.redocly.app/_mock/docs/greenlake/services/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings/{id}
- Url hostname
https://global.api.greenlake.hpe.com/subscriptions/v1/auto-subscription-settings/{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/subscription-management/public/openapi/nbapi-subscription-latest/subscriptions/v1/auto-subscription-settings/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{}'
{ "id": "64343c3c-3016-4234-baee-765651aa4bb3", "createdAt": "2024-02-07T11:20:35.290Z", "updatedAt": "2024-02-07T11:22:35.800Z", "generation": 0, "type": "subscriptions/auto-subscription-settings", "resourceUri": "string", "autoSubscriptionSettings": [ { … } ] }