Use API to create configurations to upload any file type
POST
https://<mas_ip>/stylebook/nitro/v2/config/configpacks?mode=syncContent-Type: application/json
Accept: application/json
{
"configpack": {
"stylebook": {
"name": "upload-geolocations",
"namespace": "com.citrix.adc.stylebooks.samples",
"version": "1.0"
},
"parameters": {
"locationfile": {
"name": "servercert1.key",
"contents": "<base64-contents>",
"encoding_type": "base64"
}
},
"targets": [
{
"instance_id": "d9dca475-abde-47ef-bf99-8434fe6ad886"
}
]
}
}