Question

How to automate the export and import of lobbies using the API (or IFS Connect) in IFS Cloud?

  • 15 March 2023
  • 0 replies
  • 216 views

Badge +1

I am  interested in exporting and importing lobby configuration files using the API or IFS Connect or even a combination of them.

I have manged to export the lobby page using LobbyConfiguration.svc/GetPageDefinition(PageId='<Page ID>'). I actually used the followining command from the terminal (bash):

curl -u "<username>:<password>" \
https://<my-domain>/main/ifsapplications/projection/v1/ \
LobbyConfiguration.svc/GetPageDefinition"(PageId='<Page ID>')" \
>> export.page.xml

This seems to work fine, and produces an XML file almost identical to when you export manually, it’s just needs some odata text removed and formatting which I made a python script for.

My problem is I can’t see anyway of importing that file back in to IFS. I’ve looked through the API Explorer and can’t see anything. I also imported a lobby file manually, and paid attention to the server invokes both in the IFS Debug Console and the browser Dev Tools. This led me to try this URL using POST: https://<my-domain>/main/ifsapplications/web/server/lobby/page/save-full-page/

I used the same credentials but I get a 401 Authorization error:

<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>openresty</center>
</body>
</html>

I want to do this using the API or IFS Connect (or another tool i’m not aware of) so I am be able to automate the process of taking lobbies out of one instance of IFS, in say a dev environment, and import them back in to an instance in another environment.

Does anyone have any ideas on how to do this? What tools I should use etc. Any help or advice would really be appreciated.

Thanks in advance.

Ryan


0 replies

Be the first to reply!

Reply