Webhook
An application can provide real-time information or notifications to other applications using the Webhook service. You can access the Webhook service through the APIApplication Programming Interface. Refers to a set of functions, procedures, protocols, and tools that enable users to build application software. Gateway. Using the Webhook service, you can list, add, or delete Webhooks; get Webhook token; refresh Webhook token; update Webhook settings; do Webhook settings for a specific item; and test for Webhook notification.
orAruba Central allows you to integrate Webhook with other third-party applications such as ServiceNOW, Zapier, IFTTT, and so on.
Configuring and Modifying Webhook Through the User Interface
To access the Webhooks service from the UI:
- In the
The
page is displayed.
page, under , click . - In the
Figure 1 Webhooks Page
Figure 2 Add Webhooks Page
tab, click sign. The pop-up box opens. - To create webhooks, enter the following details:
- —Enter a name for the Webhook
- —Select this to have no retry.
- —Select this to have up to 5 retries over 6 minutes.
- —Select this to have up to 5 retries over 27 hours.
— Select any one of the following options:- URLUniform Resource Locator. URL is a global address used for locating web resources on the Internet.. Click + to enter another URL. You can add up to three URLs. —Enter the
- Click . The Webhooks is created and listed in the table.
Viewing Webhooks
To view the Webhooks, complete the following steps:
The
table displays the following information and also allows you to edit or delete Webhooks:- In the page, under , click .
- The
The table allows you to edit or delete Webhooks and also displays the following information:- —Name of the Webhooks.
- —Number of URLs in Webhooks. Click the number to view the list of URLs.
- —Date and time at which Webhooks was updated.
- —Webhooks ID.
- —Webhooks token. Webhooks token enables header authentication and the third-party receiving service must validate the token to ensure authenticity.
- —Select the Webhook from the list and click the icon to edit the Webhook. You can refresh the token and add URLs. Click to save the changes.
- —Select the Webhook from the list and click the icon and click to delete the Webhook.
- —Select the Webhook from the list and click the icon to test the Webhook by posting sample webhook payload to the configured URL. The table provides the and of the selected Webhook.
- —Select the Webhook from the list and click the icon to view the for the selected Webhook. The table provides the , and . Click the arrow against each row to view the and in the drop-down for the respective URL.
Figure 3 Dispatch Logs Details Page
page with Webhook table is displayed.
Refreshing Webhooks Token Through the UI
To refresh Webhooks token through the UI:
- In the
The
page is displayed.
page, under , click . - In the table, select the Webhook from the list and click icon to edit.
- In the pop-up window, click the icon next to the token. The token is refreshed.
Configuring and Modifying Webhook Through the API Gateway
To access and use the API Webhook service
- Log in to .
- Under , click .
- In the Swagger website opens. tab, click the link under the header. The
- In the Swagger website, select from the drop-down list. All available Webhooks APIs are listed under .
For further help on API Webhook Service and creating a Webhook ID (WID), refer to https://apigw-<fqdn of the Aruba Central Instance>/swagger/apps/nms/.
The following HTTPHypertext Transfer Protocol. The HTTP is an application protocol to transfer data over the web. The HTTP protocol defines how messages are formatted and transmitted, and the actions that the w servers and browsers should take in response to various commands. methods are defined for Aruba Central API Webhook resource:
You can perform CRUD operation on the Webhook URL configuration. The key configuration elements that are required to use API Webhook service are Webhook URL and a shared secret.
A shared secret token is generated for a Webhook URL when you register for Webhooks. A hash key is generated using SHA256 algorithm by using the payload and the shared secret token. The API required to refresh the shared secret token is provided for a specific Webhook configuration. You can choose the frequency at which you want to refresh the secret token.
Content-Type: application/json
X-Central-Service: Alerts
X-Central-Event: Radio-Channel-Utilization
X-Central-Delivery-ID: 72d3162e-cc78-11e3-81ab-4c9367dc0958
X-Central-Delivery-Timestamp: 2016-07-12T13:14:19-07:00
X-Central-Customer-ID: <########>