Does anyone know if there is a command to perform a config upload via REST API?
I have looked in the FOS REST API reference manual as well as the SANnav management portal REST API guides and i didnt see any reference to config upload - i did see a reference for a support save but i need config upload API's
In the REST API manual 8.2.1, it says it is possible with the original commands. (page 20).
quote:
" Configuration Upload and Download Fabric OS REST configurations can be saved and restored using the standard configuration upload and download commands as well as during a high availability (HA) failover operation. If you downgrade a device to a version of Fabric OS earlier than 8.2.0, FOS REST API is not supported and will not function, and any mgmtapp configuration commands are discarded.
Yes I saw that - however, there is no actual "configupload" module in the API guide (but there is for supportsave for example) - and that paragraph is just stating that the REST "configurations" are saved/restored as part of the configupload command - nowhere in that document does it state how to perform a configupload via API
As far as i can tell there's no way to do it via FOS API or SANnav (which i find odd)
What you can do is open a SR with a serial number under contract and we can consult with Brocade and if it is not possible, we can open an enhancement request... if that would suit.
Use this Service Template to execute 'configupload' command on Brocade FC switches; typically configupload is used to backup the switch configuration to a remote server,
'configupload' is executed via ssh rather than ftp when using this service template.
Using configupload over ssh is not particularly easy to do with traditional scripts since the command does not appear to support passing of the remote server password when executed with argument '-p ssh'.
DELL-Sam L
Community Manager
•
8150 Posts
•
34715 Points
2573
0
Posted August 25th, 2021 09:00
Hello Farhad80,
I am not aware of any command that will do a configuration upload via rest api.