This script shows how threat profiles can be migrated from one R80 manager to another R80 or R80.10 manager programmatically using the R80 web APIs, Python, and cpauto.
Script requires at least two R80/R80.10 managers with the web APIs enabled. The source manager should have some user-defined threat profiles for the demo to be useful.
The provided code is merely an example but is a viable pattern that can be reused for virtually all policy and object types.
Download the archive and run the enclosed Python script on a system that meets the following requirements:
- Python and cpauto installed correctly
- Network access to the source and destination R80 web API resources
For more information on cpauto: https://github.com/dana-at-cp/cpauto
Code version 1.0.0
Tested on version
R80, API version 1.0, 1.1
NOTICE: By using this sample code you agree to terms and conditions in this Terms and Conditions