StyleBook configuration

Use API to upgrade the configuration pack to a new StyleBook

You can use StyleBook API to upgrade the configuration pack to a new StyleBook. If you already have created configuration packs using the old StyleBook, you might want to upgrade them to use the new StyleBook.

POST http://<ADM-endpoint-name>/stylebook/nitro/v2/config/configpacks/actions/upgrade

Payload:

{
    "upgrade": {
        "configpack_ids": [
            "1644278065",
            "2750234437"
        ],
        "stylebook": {
            "name": "customer-template",
            "namespace": "neustar.citrix.adc.stylebooks",
            "version": "6.2"
        }
    }
}
<!--NeedCopy-->

In this example payload, the given config packs upgrade the parameters that are defined in the custom-template StyleBook.

To get the status of the configuration pack migration job, specify the following API:

GET: https://<ADM-IP-address>/stylebook/nitro/v1/config/jobs/<job-ID>

Note

Repeat the above mentioned POST method until the status value appears as completed or failed.

Use API to upgrade the configuration pack to a new StyleBook

In this article