Backup and Restore User Defined Events - vRealize Network Insight

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. This script requires the vRNI Python SDK, which is available here:

Support vRNI version: vRNI-5.2.0 and above

#python --help

usage: [-h] [--deployment_type DEPLOYMENT_TYPE]

                                      [--platform_ip PLATFORM_IP]

                                      [--username USERNAME]

                                      [--password PASSWORD]

                                      [--domain_type DOMAIN_TYPE]

                                      [--domain_value DOMAIN_VALUE]


                                      [--vidm_token VIDM_TOKEN]

                                      [--api_token API_TOKEN]

                                      [--event_backup_yaml EVENT_BACKUP_YAML]

                                      [--event_backup_action EVENT_BACKUP_ACTION]

                                      [--update_snmp_destinations UPDATE_SNMP_DESTINATIONS]


Run Public APIs on vRNI Platform


optional arguments:

  -h, --help            show this help message and exit

  --deployment_type DEPLOYMENT_TYPE

                        Setup deployment type: onprem or niaas

  --platform_ip PLATFORM_IP

                        IP address of vRNI platform. In case of cluster IP

                        address of Platform-1

  --username USERNAME   user name for authentication

  --password PASSWORD   password for authentication

  --domain_type DOMAIN_TYPE

                        domain type for authentication: LOCAL or LDAP or VIDM

  --domain_value DOMAIN_VALUE

                        domain value for LDAP user:

  --get_vidm_client_id  Get client-id for making user access-token request to


  --vidm_token VIDM_TOKEN

                        Provide vidm_token

  --api_token API_TOKEN

                        Provide niaas api token

  --event_backup_yaml EVENT_BACKUP_YAML

                        User defined events are saved in this csv

  --event_backup_action EVENT_BACKUP_ACTION

                        Action can be 'save' or 'restore'

  --update_snmp_destinations UPDATE_SNMP_DESTINATIONS

                        Update snmp in user defined events

Sign in to be able to add comments.

Comments 0