You can also use the NetScaler Console API to create a configuration pack that uploads files to the selected NetScaler instance.
Use the following REST API to create a configuration pack from this StyleBook:
POST https://<ADM-endpoint-name>/stylebook/nitro/v2/config/configpacks?mode=async
{
"configpack": {
"stylebook": {
"name": "filetest",
"namespace": "test.adc.stylebook",
"version": "1.0"
},
"parameters": {
"nameoffile": "file1",
"fileupload": {
"name": "relate.txt",
"contents": "base64 encoded content",
"encoding_type": "base64"
}
},
"targets": [
{
"instance_id": "9419667d-27b7-495a-b87a-d3b5ee747dd3"
}
],
}
}