API for registering and managing HTTP webhooks and subscriptions.
Webhook API - v1beta1 (v1beta1)
https://global.api.greenlake.hpe.com/
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "License Notification",
"description": "Webhook for receiving license notifications",
"destination": "https://example.com/new-endpoint",
"secret": "s3cr3tKey"
}'Webhook successfully registered.
Indicates whether the webhook is paused. false means the webhook is not paused.
Indicates whether the webhook uses dual secret authentication.
If false, no challenge requests will be sent to webhook
The rate limit (requests per minute) allowed by the webhook endpoint. This value is determined during webhook verification when the endpoint responds with a WebHook-Allowed-Rate header. A value of -1 indicates unlimited rate, positive integers specify requests per minute, and null indicates no rate limit has been specified by the endpoint.
{ "id": "123e4567-e89b-12d3-a456-426614174000", "type": "events/webhook", "name": "License Notification", "description": "Webhook for receiving license notifications", "destination": "https://example.com/new-endpoint", "paused": false, "status": "ACTIVE", "resourceUri": "/events/v1beta1/webhooks/123e4567-e89b-12d3-a456-426614174000", "generation": 1, "hpePrincipal": "user:<opaque-global-id>", "createdBy": "sample.user@example.com", "createdAt": "2024-04-29T15:25:06.194Z", "updatedAt": "2024-04-29T15:25:06.194Z", "clientId": "0908777a-788f-45da-afb8-295c626e4d14", "issuerUrl": "https://example.com/new-endpoint", "authType": "Oauth", "dualSecret": false, "batching": false, "challengeRequestEnabled": true }
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Webhooks retrieved successfully.
Indicates whether the webhook is paused. false means the webhook is not paused.
Controlled by System only
Indicates whether the webhook uses dual secret authentication.
If false, no challenge requests will be sent to webhook
The rate limit (requests per minute) allowed by the webhook endpoint. This value is determined during webhook verification when the endpoint responds with a WebHook-Allowed-Rate header. A value of -1 indicates unlimited rate, positive integers specify requests per minute, and null indicates no rate limit has been specified by the endpoint.
{ "items": [ { … } ], "count": 0, "offset": 0, "total": 0 }
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Webhook retrieved successfully.
Indicates whether the webhook is paused. false means the webhook is not paused.
Indicates whether the webhook uses dual secret authentication.
If false, no challenge requests will be sent to webhook
The rate limit (requests per minute) allowed by the webhook endpoint. This value is determined during webhook verification when the endpoint responds with a WebHook-Allowed-Rate header. A value of -1 indicates unlimited rate, positive integers specify requests per minute, and null indicates no rate limit has been specified by the endpoint.
{ "id": "123e4567-e89b-12d3-a456-426614174000", "type": "events/webhook", "name": "License Notification", "description": "Webhook for receiving license notifications", "destination": "https://example.com/new-endpoint", "paused": false, "status": "ACTIVE", "stateReason": "Failure in Event Deliveries", "resourceUri": "/events/v1beta1/webhooks/123e4567-e89b-12d3-a456-426614174000", "generation": 1, "hpePrincipal": "user:<opaque-global-id>", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "authType": "oauth", "clientId": "a822f43a-9e72-4a04-8476-ad00422b987f", "issuerUrl": "http://example.com", "dualSecret": false, "batching": false, "endpointRateLimit": 100, "challengeRequestEnabled": true }
Indicates whether the webhook is paused. false means the webhook is not paused.
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X PATCH \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/merge-patch+json' \
-d '{}'Webhook updated successfully.
Indicates whether the webhook is paused. false means the webhook is not paused.
Indicates whether the webhook uses dual secret authentication.
If false, no challenge requests will be sent to webhook
The rate limit (requests per minute) allowed by the webhook endpoint. This value is determined during webhook verification when the endpoint responds with a WebHook-Allowed-Rate header. A value of -1 indicates unlimited rate, positive integers specify requests per minute, and null indicates no rate limit has been specified by the endpoint.
{ "id": "123e4567-e89b-12d3-a456-426614174000", "type": "events/webhook", "name": "License Notification", "description": "Webhook for receiving license notifications", "destination": "https://example.com/new-endpoint", "paused": false, "status": "ACTIVE", "stateReason": "Failure in Event Deliveries", "resourceUri": "/events/v1beta1/webhooks/123e4567-e89b-12d3-a456-426614174000", "generation": 1, "hpePrincipal": "user:<opaque-global-id>", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "authType": "oauth", "clientId": "a822f43a-9e72-4a04-8476-ad00422b987f", "issuerUrl": "http://example.com", "dualSecret": false, "batching": false, "endpointRateLimit": 100, "challengeRequestEnabled": true }
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X DELETE \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/verify
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}/verify
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/verify' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Webhook validated successfully.
Indicates whether the webhook is paused. false means the webhook is not paused.
Indicates whether the webhook uses dual secret authentication.
If false, no challenge requests will be sent to webhook
The rate limit (requests per minute) allowed by the webhook endpoint. This value is determined during webhook verification when the endpoint responds with a WebHook-Allowed-Rate header. A value of -1 indicates unlimited rate, positive integers specify requests per minute, and null indicates no rate limit has been specified by the endpoint.
{ "id": "123e4567-e89b-12d3-a456-426614174000", "type": "events/webhook", "name": "License Notification", "description": "Webhook for receiving license notifications", "destination": "https://example.com/new-endpoint", "paused": false, "status": "ACTIVE", "stateReason": "Failure in Event Deliveries", "resourceUri": "/events/v1beta1/webhooks/123e4567-e89b-12d3-a456-426614174000", "generation": 1, "hpePrincipal": "user:<opaque-global-id>", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "authType": "oauth", "clientId": "a822f43a-9e72-4a04-8476-ad00422b987f", "issuerUrl": "http://example.com", "dualSecret": false, "batching": false, "endpointRateLimit": 100, "challengeRequestEnabled": true, "destinationResponse": { "statusCode": 0, "message": "OK", "requestedRate": 0 } }
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/recent-deliveries
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}/recent-deliveries
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X GET \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/recent-deliveries' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Recent deliveries retrieved successfully.
An array of failure response objects that detail each failed delivery attempt associated with a specific webhook.
Unique identifier of the delivery. For batch deliveries, this is the batch ID; for single deliveries, the cloudevent ID.
Headers included in the webhook's request.
Indicates whether the delivery can be retried
Human-readable description of the delivery. For single event deliveries, this is the event type. For batch deliveries, this is a string like "Batch of 10 events".
The number of failure response objects contained in the items array for the current response.
The zero-based index in the complete list of failures that marks the start of the current set of data.
{ "items": [ { … } ], "count": 0, "offset": 0, "total": 0 }
https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/delivery-failures/{failureId}/retry
- Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/event/public/openapi/webhook-v1beta1/webhook-v1beta1-nbapi/events/v1beta1/webhooks/{id}/delivery-failures/{failureId}/retry
- curl
- JavaScript
- Node.js
- Python
- Java
- Go
- C#
- PHP
curl -i -X POST \
'https://global.api.greenlake.hpe.com/events/v1beta1/webhooks/{id}/delivery-failures/{failureId}/retry' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "events/deliveryFailure", "httpResponseCode": 0, "resourceUri": "/events/v1beta1/webhooks/{webhookId}", "requestHeaders": { "Content-Type": "application/json" }, "requestBody": { "cloudEvents": "data" }, "responseHeaders": { "Content-Type": "application/json" }, "responseBody": { "error": "Internal processing error" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "generation": 1, "failureId": "123e4567-e89b-12d3-a456-426614174000" }