ExtremeCloud IQ Developer ExtremeCloud IQ Developer
Home
Documentation
API Reference (opens new window)
  • OpenAPI

    • Latest (opens new window)
    • History (opens new window)
  • SDK

    • Java
    • Javascript
    • Python
    • Go
    • C#
Release Notes
Community (opens new window)
ExtremeCloud IQ (opens new window)
Home
Documentation
API Reference (opens new window)
  • OpenAPI

    • Latest (opens new window)
    • History (opens new window)
  • SDK

    • Java
    • Javascript
    • Python
    • Go
    • C#
Release Notes
Community (opens new window)
ExtremeCloud IQ (opens new window)
  • Get Started

  • Tutorial

    • PPSK User Creation
    • Webhook subscriptions
      • About webhook
      • Webhooks message flow
      • Setup webhook subscription
      • Webhook payload examples
      • Delete webhook subscription
  • documentation
  • Tutorial
Yuhua Cao
2021-11-04

Webhook subscriptions

# About webhook

Webhooks allow you to subscribe certain events/logs on ExtremeCloud IQ. It's an intuitive method of collecting data by having real-time events/logs push their information onto a provided URL. When one of those events/logs is being triggered, we'll send a HTTP POST request with JSON payload to the configured webhook URL.

Currently the Webhooks have capabilities for these specific message types:

  • LOCATION_AP_CENTRIC
  • LOCATION_CLIENT_CENTRIC
  • AUDIT_LOG_ALL
  • GDPR_LOG_ALL
  • CREDENTIAL_LOG_ALL
  • ACCOUNTING_LOG_ALL
  • AUTHENTICATION_LOG_ALL
  • EMAIL_LOG_ALL
  • SMS_LOG_ALL

NOTE

Webhooks via ExtremeCloud IQ GUI configuration are available for message type LOCATION_AP_CENTRIC and LOCATION_CLIENT_CENTRIC only.

# Webhooks message flow

The webhook flow.

# Setup webhook subscription

Creating a webhook subscription is a two-step process.

  1. First, you need to set up your own service to receive the webhook payload.
  2. Then, you need to set up webhook subscription via the REST API.

Please refer to our API documentation (opens new window) for the correct request format.

Below is an example for audit log webhook subscription

POST /subscriptions/webhook HTTP/1.1
Content-Length: 150
Authorization: Bearer <valid_access_token>
Host: https://api.extremecloudiq.com
Content-Type: application/json

[
  {
    "application": "example-app-audits",
    "url": "https://webhook-endpoint-example-audits",
    "secret": "00000000",
    "message_type": "AUDIT_LOG_ALL"
  }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Webhook payload examples

  • User logged in
[ {
  "ownerId" : 1091,
  "orgId" : 0,
  "timeStamp" : 1636337187553,
  "id" : null,
  "userId" : 6553,
  "code" : 10001,
  "category" : 1,
  "description" : "Logged in with privileges of admin group Administrator",
  "userName" : "user@extremecloudiq.com",
  "vhmName" : "USER-VHM",
  "orgName" : null,
  "deviceCount" : null,
  "hostNames" : null,
  "config" : null,
  "deviceIds" : null
} ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • Create a PPSK user:
[ {
  "ownerId" : 7932,
  "orgId" : 0,
  "timeStamp" : 1636370512581,
  "id" : null,
  "userId" : 602122,
  "code" : 40001,
  "category" : 3,
  "description" : "Created Cloud PPSK User ppsk_user_01",
  "userName" : "user@extremecloudiq.com",
  "vhmName" : "USER-VHM",
  "orgName" : null,
  "deviceCount" : null,
  "hostNames" : null,
  "config" : null,
  "deviceIds" : null
} ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • Delete a PPSK user:
{
  "ownerId" : 7932,
  "orgId" : 0,
  "timeStamp" : 1636370458669,
  "id" : null,
  "userId" : 602122,
  "code" : 40003,
  "category" : 3,
  "description" : "Deleted Cloud PPSK User ppsk_user_01",
  "userName" : "user@extremecloudiq.com",
  "vhmName" : "USER-VHM",
  "orgName" : null,
  "deviceCount" : null,
  "hostNames" : null,
  "config" : null,
  "deviceIds" : null
} 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  • User logged out:
{
  "ownerId" : 7932,
  "orgId" : 0,
  "timeStamp" : 1636369757744,
  "id" : null,
  "userId" : 602122,
  "code" : 10002,
  "category" : 1,
  "description" : "Logged out",
  "userName" : "user@extremecloudiq.com",
  "vhmName" : "USER-VHM",
  "orgName" : null,
  "deviceCount" : null,
  "hostNames" : null,
  "config" : null,
  "deviceIds" : null
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# Delete webhook subscription

Please refer to our API documentation (opens new window) for the correct request format.

Below is an example to delete subscription with specified subscription ID:

DELETE /subscriptions/webhook/{id} HTTP/1.1
Authorization: Bearer <valid_access_token>
Host: https://api.extremecloudiq.com
Content-Type: application/json
1
2
3
4
LastUpdated: 2022/05/14, 00:55:10
PPSK User Creation

← PPSK User Creation

Copyright © 1996-2024 Extreme Networks