Product Documentation

Managing AppExpert Applications

Jun 14, 2016

To export an AppExpert application, specify the parameters needed for the export operation in the apptemplateinfo object. Optionally, you can specify basic information about the AppExpert application template, such as the author of the configuration, a summary of the template functionality, and the template version number, in the template_info object. This information is stored as part of the template file that is created.

For example, to export an AppExpert application named MyApp1:
  • Request:

    HTTP Method
    POST
    URL
    http://<netscaler-ip-address>/nitro/v1/config/apptemplateinfo?action=export
    Request Headers
    Cookie:NITRO_AUTH_TOKEN=<tokenvalue> 
    Content-Type:application/vnd.com.citrix.netscaler.apptemplateinfo+json
    Request Payload
    { 
        "apptemplateinfo": 
        { 
            "appname":"MyApp1", 
            "apptemplatefilename":"BizAp.xml", 
            "template_info": 
            { 
                "templateversion_major":"2", 
                "templateversion_minor":"1", 
                "author":"XYZ", 
                "introduction":"Intro", 
                "summary":"Summary" 
            } 
         } 
    }
  • Response:

    HTTP Status Code on Success
    200 OK
    HTTP Status Code on Failure
    4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error.

To import an AppExpert application, specify the parameters needed for the import operation in the apptemplateinfo object.

For example, to import an AppExpert application named MyApp1:
  • Request:

    HTTP Method
    POST
    URL
    http://<netscaler-ip-address>/nitro/v1/config/apptemplateinfo?action=import
    Request Headers
    Cookie:NITRO_AUTH_TOKEN=<tokenvalue> 
    Content-Type:application/vnd.com.citrix.netscaler.apptemplateinfo+json
    Request Payload
    { 
       "apptemplateinfo": 
       { 
           "apptemplatefilename":"BizAp.xml", 
           "deploymentfilename":"BizAp_deployment.xml", 
           "appname":"MyApp1" 
       } 
    }
  • Response:

    HTTP Status Code on Success
    200 OK
    HTTP Status Code on Failure
    4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error.
To import an AppExpert application by specifying different deployment settings:
  • Request:

    HTTP Method
    POST
    URL
    http://<netscaler-ip-address>/nitro/v1/config/apptemplateinfo?action=import
    Request Headers
    Cookie:NITRO_AUTH_TOKEN=<tokenvalue> 
    Content-Type:application/vnd.com.citrix.netscaler.apptemplateinfo+json
    Request Payload
    { 
       "apptemplateinfo": 
       { 
          "apptemplatefilename":"BizAp.xml", 
          "appname":"Myapp2", 
           "deploymentinfo": 
           { 
               "appendpoint": 
               [ 
                   { 
                       "ipv46":"11.2.3.8", 
                       "port":80, 
                       "servicetype":"HTTP" 
                   } 
               ], 
               "service": 
               [ 
                   { 
                       "ip":"12.3.3.15",   
                       "port":80, 
                       "servicetype":"SSL" 
                   }, 
                   { 
                       "ip":"14.5.5.16",   
                       "port":443, 
                       "servicetype":"SSL" 
                   } 
               ] 
           } 
       } 
    }
  • Response:

    HTTP Status Code on Success
    200 OK
    HTTP Status Code on Failure
    4xx <string> (for general HTTP errors) or 5xx <string> (for NetScaler-specific errors). The response payload provides details of the error.