StyleBook configuration

Use APIs to create configurations to upload any file type

You can also use the NetScaler Console API to create a configuration pack that uploads files to the selected NetScaler instance.

Consider the StyleBook example that you created in How to Create a StyleBook to Upload Files to NetScaler Console to upload files of any type.

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"
            }
        ],
    }
}
<!--NeedCopy-->
Use APIs to create configurations to upload any file type

In this article