Application Delivery Management

Use API to create configurations to upload any file type

You can also use the NetScaler Console API to create a config 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 config pack and specify the value of the parameter “locationfile” as the file path of the location file on NetScaler Console. Use REST API to create a config 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

In this article