Prebuilt Functions

A complete and updated list of ready to use functions curated by the VMware Event Broker community is listed below.

Get started with our prebuilt functions

These functions are prebuilt, available in ready to deploy container and function.yaml files for you to deploy as is. Should you need to modify the functions to fit your needs, the README.md files provided within each function folder will provide all the information you need to customize, build and deploy the function on your VMware Event Broker appliance.

Note: These functions are provided and tested to be used with the VMware Event Broker Appliance deployed with Knative as the event stream processor.

Functions

Datastore Usage Alarm Email Notification

Sends email notifications to a specified email address for datastore usage on disk alarms. Optional configuration for a per-datastore email, enabling different recipients for different datastores.

notification

Echo Cloud Event for Knative

Function that helps users understand the structure and data of a given vCenter Event using the Knative event processor which will be useful when creating brand new Functions.

other

Email Notification

Powershell function to send an Email.

notification

Host Maintenance Alarm Actions

Automatically disables alarm actions when a host enters maintenance mode, enables alarm action when a host exits maintenance mode.

notification

Slack Notification

Function to send a Slack notification.

integration notification

SMS Notification

Function to send an SMS message using Twillio triggered by a VM Snapshot.

integration notification

Telegram Notification

Function to send a Telegram notification triggered by a vMotion of a VM.

automation integration notification

VMware Cloud Gateway Notification (Teams)

Function to send a Microsoft Teams notification triggered by a VMware Cloud Notification Gateway SDDC Event.

integration notification

VMware Cloud Gateway Notification (Slack)

Function to send a Slack notification triggered by a VMware Cloud Notification Gateway SDDC Event.

integration notification

VMware HA Notification

Function to send an e-mail notification after an HA event. The email includes a list of VMs and timestamps showing when each VM was restarted by HA.

notification

VMware Horizon Notification

Function to send a Slack notification triggered by a VMware Horizon Event.

integration notification

Distributed Virtual Switch configuration enforcement

Function to enforce MTU values on a distributed virtual switch. Any MTU changes will be intercepted by the function and reset to the desired value.

remediation

Distributed Virtual Switch portgroup configuration enforcement

Function to enforce the Notify Switches value on a distributed virtual switch portgroup. Any changes to the Notify Switches value will be intercepted by the function and reset to the desired value.

remediation

Portgroup Compliance Check

Creates a Slack notification when VM network portgroups are out of compliance. Tag VMs as PCI, tag portgroups as PCI, receive a Slack notification any time a tagged VM is moved off of a PCI portgroup.

notification

Enhancing vSphere Alarm Actions

Function to send a Slack notification triggered by a vSphere Alarm.

integration notification

vSphere Custom Attributes

Add Custom Attribute to a VM upon a vCenter event.

automation

vSphere to NSX-T Tag Synchronization

Automatically synchronize VM tags to NSX-T.

automation

vSphere Tagging

Automatically tag a VM upon a vCenter event (ex. a VM can be tagged during a poweron event).

automation

Custom Webhook Function

Function to ingest a non-CloudEvent using a custom incoming webhook.

integration

vRealize Network Insight Databus Incoming Webhook

Function that accepts an incoming webhook from the vRealize Network Insight Databus, constructs a CloudEvent and sends it to the VMware Event Router.

notification

Alert on vSphere Inventory Resource Deletion

Function to send a Slack notification when a specific vSphere inventory resource has been deleted.

notification

Schedule VM Snapshot Retention Management

Function to manage VM snapshots on a scheduled job (cron).

automation remediation

Trigger vSphere Virtual Machine Preemption

Function for triggering vSphere virtual machine preemption (power off) using a workflow engine and the vsphere-preemption prototype.

integration

vRealize Orchestrator

Trigger a vRealize Orchestrator workflow, passing all CloudEvent data as native vRO datatypes, using the vRO REST API.

integration remediation

Zapier workflow integration

Trigger a Zapier workflow, passing select CloudEvent data to a Zapier webhook.

integration

Transform Harbor webhook event notifications to CloudEvents

Function for receiving Project Harbor webhook notifications (events).

integration

Creates a Slack notification when a Harbor webhook notification event got triggered

Function to send a Slack notification triggered by a Harbor webhook notification.

notification

Google Chat Notification

Function to send a Google Chat notification.

integration notification

Contributions

These functions serve as an easy way to use the appliance and as an inspiration for how to write functions in different languages. If you have an idea for a function and are looking to write your own, start with our documentation here.

Check our contributing guidelines and join Team #VEBA by submitting a pull request for your function to be showcased on this list.