Forum Discussion

Pinco's avatar
Pinco
Icon for Nimbostratus rankNimbostratus
May 20, 2025

UCS restore via REST with additional options

For our DR site I am restoring periodically some VCMP in the remote site using our local UCS backups. 

As the hardware platform differs, it seems that I need to put additional options like no-platform-check and platform-migrate like in this CLI command:

tmsh load sys ucs /var/local/ucs/<ucs-files> no-platform-check platform-migrate

The restore via CLI works using the additional options, without them it fails. Using REST /mgmt/tm/sys/ucs is it possible to use options like no-platform-check platform-migrate ? Apparently it is not possibile, or at least not well documented. I need these options otherwise the restore fails.

Thank you for your suggestions!

2 Replies

  • no-platform-check platform-migrate exist only in CLI

    But you could use "/mgmt/tm/util/bash" endpoint to run the same command with API

    • Pinco's avatar
      Pinco
      Icon for Nimbostratus rankNimbostratus

      Thank you Kosts for your suggestion! I tried but without success, probably because the task is too long. 

      As a workaround I am using a cron job in the target system, it restores (if present) a recent UCS previously loaded via REST API.