We are facing a scenario where we need to create and update (i.e. re-create with overwrite) MANY virtual services based on RR pairs. Our ideia is use the REST API to do it automatically, but we can use commmad line calls if needed.
On re-creation we need to keep the same listen port, to avoid change on consumer side every time.
We found in the documentation the option to use a 'serviceProperties.xml' to set the listen port. For example:
But I was unable to figure out how create the POST request to use the 'createService' API operation; specially how to 'upload' the files. In fact, our question is more retaled to REST use.
Someone can show me an example?
We will automate everything using Python or Java, but first we need to understand the messages formats.
For testing purpose I tried to create on the Portal also, but it doesn't accept the 'serviceProperties.xml' file.
Thank's in advance.