This vRealize Network Insight Python SDK example script saves all available user defined events in vRNI to a YAML file, and can restore this backup file to another vRNI instance
user_defined_events_backups.py