Use the StyleBook APIs to create configurations based on this StyleBook. You can use any tool such as the curl command line tool or the Postman chrome browser extension to send HTTP requests to NetScaler Console.
POST
https://<MAS_IP_Address>/stylebook/nitro/v2/config/configpacks?mode=async
Content-Type: application/jsonAccept: application/json
{
"configpack": {
"stylebook": {
"name": "lb-mon_test",
"namespace": "com.citrix.adc.stylebooks",
"version": "2.0"
},
"parameters": {
"lb-service-type": "SSL",
"ip-address-type": "IP Address",
"lb-appname": "testvip",
"lb-virtual-port": 80,
"svc-service-type": "SSL",
"lb-virtual-ip": "10.10.20.11",
"certificates": [
{
"ssl-inform": "PEM",
"certkey-param": {
"id": "d0982579-42a9-417a-b24e-1f9ae5592f1d",
"name": "testcertkey"
}
}
]
},
"targets": [
{
"instance_id": "f383b454-b777-454a-8c17-c477f0bad21e"
}
]
}
}
This config pack is uniquely identified by using the id f383b454-b777-454a-8c17-c477f0bad21e. You can use this ID to query, update, or delete the configuration. On successful update of the config pack, the certificate and key files are uploaded to NetScaler Console file system.