Export and import web application configuration

Is there a way to export and import web application configuration? For example to save it to version control (git) and to import it to other server.

By web application configuration I mean "System -> Security Management -> Web Applications". Sreenshot from it:

  • 0
  • 0
  • 167
  • 0
  • 4

Answers

Yes,

there is an API to export and import web-applications info to and from file.

To export:

%SYS>write ##class(Security.Applications).Export("c:\temp\webapp.xml",.n,"/csp/samples,/csp/user")

To import:

%SYS>write ##class(Security.Applications).Import("c:\temp\webapp.xml",.n)
1
%SYS>write n
2

this information is stored in ^|"%SYS"|SYS("Security","ApplicationsD")

you could extract it by MERGE ^mySAVE=^|"%SYS"|SYS("Security","ApplicationsD")
and then do any export of the global

Yes, there is a way using ^SECURITY routine in %SYS namespace in Terminal.

You can export single application or all of them.

USER>zn "%SYS"
 
%SYS>d ^SECURITY
 
1) User setup
2) Role setup
3) Service setup
4) Resource setup
5) Application setup
6) Auditing setup
7) Domain setup
8) SSL configuration setup
9) Mobile phone service provider setup
10) OpenAM Identity Services setup
11) Encryption key setup
12) System parameter setup
13) X509 User setup
14) KMIP server setup
15) Exit
 
Option? 5
 
1) Create application
2) Edit application
3) List applications
4) Detailed list applications
5) Delete application
6) Export applications
7) Import applications
8) Exit
 
Option? 6
 
Export which applications? * => ?
 
 Num  Name                           Namespace
  1)  /api/atelier                   %SYS
  2)  /api/deepsee                   %SYS
  3)  /api/iknow                     %SYS
  4)  /csp/ensdemo                   ENSDEMO
  5)  /csp/ensemble                  ENSEMBLE
  6)  /csp/samples                   SAMPLES
  7)  /csp/samples/docserver         SAMPLES
  8)  /csp/user                      USER
  9)  /isc/studio/usertemplates      %SYS
 10)  /csp/broker                    %SYS
 11)  /csp/docbook                   DOCBOOK
 12)  /csp/documatic                 DOCBOOK
 13)  /csp/sys                       %SYS
 14)  /csp/sys/bi                    %SYS
 15)  /csp/sys/exp                   %SYS
 16)  /csp/sys/mgr                   %SYS
 17)  /csp/sys/op                    %SYS
 18)  /csp/sys/sec                   %SYS
 19)  /isc/pki                       %SYS
 20)  /isc/studio/rules              %SYS
 21)  /isc/studio/templates          %SYS
 
Export which applications? * => 6
Export which types of applications (1=CSP,2=Routine,3=Executable)? * =>
Export to file name ApplicationsExport.xml =>
Parameters? "WNS" =>
Confirm export of Applications records to ApplicationsExport.xml? No => yes
Export of 1 applications records complete