StyleBooks in NetScaler MAS can be grouped in two ways. They can be grouped as either default StyleBooks or Custom StyleBooks. Or, they can also be grouped as public or private StyleBooks. From the NetScaler MAS, you can view all the StyleBooks that are present in the system. NetScaler MAS also allows you to sort and view the StyleBooks. You can also view a graphical display of how StyleBooks are connected with each other.
This document also tells you how to download and delete custom StyleBooks. You can download a custom StyleBook to make modifications or to create a new StyleBook based on the earlier one. You can also delete a custom StyleBook.
This document includes the following information:
Both default and custom StyleBooks can be either public or private.
StyleBooks from which you can create configuration packs to be deployed on the NetScaler instances can be categorized as public StyleBooks. That is, they are all available for your direct usage to create configurations.
But, some StyleBooks are used as building blocks for other StyleBooks. These building blocks are the built-in StyleBooks that the default StyleBooks are composed of. Such StyleBooks are called private StyleBooks. Though they are not directly used to create configuration packs on the instances, you might want to display these StyleBooks on the NetScaler MAS. To mark a StyleBook as private, you can use the private attribute to prevent a StyleBook from being listed on the NetScaler MAS.
description: This StyleBook defines a simple load balancing configuration and is a building block to build other load balancing configurations.
display-name: Load Balancing Configuration
The number of StyleBooks - both default and private are increasing in NetScaler MAS. You might want to search for the particular StyleBook that you want to access. You might also want to view both types of StyleBooks separately.
In NetScaler MAS when you navigate to Applications > StyleBooks, you can view a list of StyleBooks that are present in the system.
A default public StyleBook has the following icon on its panel:
Whereas, a default private StyleBook has an icon that declares it as a private StyleBook:
While you can view the definition and dependencies of a private StyleBook, you cannot create a config pack from a private StyleBook. You can still use a private StyleBook in your own StyleBook.
A custom-built StyleBook has a different icon as shown in the following image:
At the top right-side of the page, you can see an option to sort the StyleBooks. There are three options - all, public, or private StyleBooks. Click one of the options.
You can also search for a particular StyleBook by clicking the search icon. The three search options available are name, namespace, and version. The search operation is not case-sensitive.
In NetScaler MAS, you can either use the default StyleBooks to create configurations for your deployment. You can also design your own StyleBooks and import them to NetScaler MAS.
An important and powerful feature of StyleBooks is that they can be used as building blocks for other StyleBooks. You can import a StyleBook into another StyleBook. An imported Stylebook is declared as a type and is used by components or parameters of the second StyleBook.
For example, you can use the basic-lb-config StyleBook that you built in the previous section, to build another StyleBook called composite-example. To use the "basic-lb-config" StyleBook, you have to import it in the new StyleBook in the import-stylebooks section. By looking at the graph, it is possible to see the relationships among multiple StyleBooks.
A StyleBook used by other StyleBooks cannot be removed from the system. However, a graphical display of StyleBooks allows you to know which StyleBooks are preventing the removal of a StyleBook.
In NetScaler MAS, navigate to Applications > StyleBooks. The StyleBooks page displays all the StyleBooks available for your use in NetScaler MAS. Scroll down and find your StyleBook. The StyleBook panel displays links to create a configuration, to view the StyleBook definition, and to view the StyleBook dependencies. Click View Dependencies.
The Forward Dependencies display allows you to view the different default StyleBooks that your StyleBook is using. Follow the arrows to find the StyleBook that a StyleBook is using. When you pause your pointer on one of the arrows, the arrow and the StyleBooks that are connected to one another are highlighted. You can also click the StyleBook names to view the definition of that StyleBook.
The Reverse Dependencies display allows you to view graphically the StyleBooks that are using your StyleBook. If you follow the arrows, you can see that all StyleBooks in the display point towards your StyleBook. Some StyleBooks might be directly using the StyleBook and some StyleBooks might be using the StyleBook through another StyleBook.
To download custom Stylebooks from NetScaler MAS, navigate to Applications > StyleBooks > Configurations. In the list of StyleBooks that are displayed on the right-side panel, the custom-defined StyleBooks have an option to download them. Click Download. If the StyleBook has dependent custom StyleBooks, even those StyleBooks are downloaded to your system.
Note: You cannot download default or custom StyleBooks that are marked as either public or private.
You cannot download NetScaler MAS default StyleBooks. You can, however, view their definitions and dependencies by clicking View Definition and View Dependencies links on the StyleBook panel.
You can also download the custom StyleBook by providing the following StyleBooks REST API:
You can also delete custom StyleBooks by clicking "X" icon in the right-side of the StyleBook panel. A pop-up window prompts you to confirm if you want to remove the StyleBook from NetScaler MAS. If the StyleBook uses other custom StyleBooks (that are not used by other StyleBooks), you can choose to remove them also by selecting the checkbox.
You can also delete the custom StyleBook by providing the following StyleBooks REST API:
If the dependencies query parameter in the URL is not provided or its value is set to false, then the StyleBook dependencies are not deleted (only the StyleBook itself is deleted).
When you receive an HTTP response status code of 200, that means the custom StyleBook (and its dependencies) is successfully removed from NetScaler MAS.
Note: You cannot delete a custom StyleBook that has other StyleBooks in MAS that depend on it.