Application Delivery Management

Use API to create configurations to upload any file type

You can also use the NetScaler Application Delivery Management (ADM) API to create a configuration pack that uploads files to the selected NetScaler instance.

Consider the StyleBook example you created to upload files of any type in How to Create a StyleBook to Upload Files to NetScaler MA Service. As in the example in the above topic, create a configuration pack and specify the value of the parameter “locationfile” as the file path of the location file on NetScaler ADM. Use REST API to create a configuration pack from this StyleBook as follows:

POST

https://<mas_ip>/stylebook/nitro/v1/config/stylebooks/com.citrix.adc.stylebooks.samples/1.0/upload-geolocations/configpacks
<!--NeedCopy-->
Content-Type: application/json
Accept: application/json
{
   "configpack":
   {
      "parameters": {
         "locationfile": "/var/mps/tenants/root/files/ /custom_geolocations.csv"  
    },
      "targets": [
         {
            "id": "5e540839-cd6c-437e-ac53-7d49bc2602b5"
      }
    ]
  }
}
<!--NeedCopy-->
Use API to create configurations to upload any file type