scottdware / go-bigip

A Go package that interacts with F5 BIG-IP systems using the REST API.
MIT License
108 stars 118 forks source link

Implementing save sys config and load sys config #116

Closed osankar closed 4 years ago

osankar commented 4 years ago

Implementing support for save current running configuration and load configuration from a file.

endpoint : POST /mgmt/tm/sys/config request body : { "command" : "save" or "load" "options": [{"file":},{"passphrase":}] }

options is optional field, when not provided the configuration will be saved to or load from default file. passphrase is used to encrypt the file, when not provided the file will be unencrypted. To load config from an encrypted file, the same passphrase that was used to save the file must be used to load. To save/lod the config to/from a .tar file, provide the file name ending with .tar; for example "backup.tar"

scottdware commented 4 years ago

Great suggestion, @osankar! I'll get this merged!