Use APIs to upgrade the configuration pack to a new StyleBook
You can use StyleBook APIs to upgrade the configuration pack from an existing StyleBook to a new StyleBook.
POST
http://<ADM-endpoint-name>/stylebook/nitro/v2/config/configpacks/actions/upgrade?mode=async
Payload:
{
"upgrade": {
"stylebook": {
"name": "customer-template",
"namespace": "neustar.citrix.adc.stylebooks",
"version": "6.2"
},
"configpack_ids": [
"1644278065",
"2750234437"
]
}
}
In this example payload, the listed config packs are 1644278065 and 2750234437. These config packs are updated to a new StyleBook with name,
customer-template, and version, 6.2.
To get the status of the configuration pack upgrade job, use the job Polling API:
GET:
https://<ADM-IP-address>/stylebook/nitro/v1/config/jobs/<job-ID>
Note
Repeat the GET method until the status field in the response body is set to completed (indicating success) or failed.