DeanRavenscroft
Contributor
Contributor

Package Synchronisation Automation - Is it possible via REST?

Hi All,

We are looking to automate package synchronisation if possible (right click package - then synchronise), but having difficulty locating it in the REST docs.

Is this something that is possible (vRO 7.5 currently)?

Apologies if this is just my google-fu failing.

 

Cheers

 

Dean

0 Kudos
3 Replies
eoinbyrne
Expert
Expert

I can't see a specific operation to synchronize packages there (7.6 swagger docs) in either the vRO Client API or the ControlCenter API.

However, you should be able to mimic the operation if you just export the package from the source server and then import the result on the other? The REST API has operations for export and import package

pastedImage_0.png

The Export operation states the following

pastedImage_1.png

The Import like so

pastedImage_2.png

Note that you would doing a single direction sync here (FROM source TO target) which would mean that  you'd have to consider which server should be the source. If you wanted to Two-way syncing then it looks like you'd just need to do this

1. Export from Server1 --> server1.package

2. Export from Server2 --> server2.package

3. Import server1.package on Server2

4. Import server2.package on Server1

A bit of messing about but it looks workable?

0 Kudos
iiliev
VMware Employee
VMware Employee

Hi,

Package synchronization command is not directly exposed in vRO REST API.

0 Kudos
DeanRavenscroft
Contributor
Contributor

It certainly does look workable! Thanks so much for this.
0 Kudos