Parameters
'name'
name attribute to refer to the parameter in other sections by using the notation $parameters.\<name>.
'label'
'description'
'type'
-
string: An array of characters. If a length is not specified, the string value can take any number of characters. However, you can limit the length of a string type by using the attributes min-length and max-length. -
number: An integer number. You can specify the minimum and maximum number that this type can take by using the attributes min-value and max-value. -
boolean: Can be either true or false. YAML considers all the literals as booleans (for example, Yes or No). -
ipaddress: A string that represents a valid IPv4 or IPv6 address. -
ipnetwork: It has two parts. First part is the IP address and second part is the netmask.
The netmask consists of netmask length (netmask-len) or netmask IP address (netmask_ip). The netmask length is an integer between 0-32 and 0–128 for an IPv6 address. It is used to determine the IP addresses count in a network.When creating or updating a configuration pack from the NetScaler Console GUI, you can do one of the following actions:-
Enable Netmask Length and input the IP address and netmask length
-
Disable Netmask Length and input the IP address and netmask IP address
-
-
tcp-port: A number between 0 and 65535 that represents a TCP or UDP port. -
password: Represents an opaque/secret string value. When the NetScaler Console GUI displays a value for this parameter, it is shown as asterisks (*****). -
certfile: Represents a certificate file. This value allows you to upload the files directly from your local system when you are creating a StyleBook configuration using the NetScaler Console GUI. The uploaded certificate file is stored in the directory/var/mps/tenants/\<tenant_path>/ns_ssl_certsin NetScaler Console.The certificate file is added to the list of certificates managed by NetScaler Console. -
keyfile: Represents a certificate key file. This value allows you to upload the file directly from your local system when you are creating a StyleBook configuration using the NetScaler Console GUI. The uploaded certificate file is stored in the directory/var/mps/tenants/\<tenant_path>/ns_ssl_keysin NetScaler Console.The certificate key file is added to the list of certificate keys managed by NetScaler Console. -
certkey: This type is used to select SSL certificates from the NetScaler Console certificate store. This store lists the existing SSL certificates that are uploaded to your NetScaler Console server. So, you can store SSL certificates at one place that is the NetScaler Console certificate store and reuse them whenever required.When creating a configuration pack, a user can add or select SSL certificates from the certificate store. Also, the user can select the same certificate for multiple config packs. -
file: Represents a file. -
object: This type is used to group several related parameters under a parent element. Specify the parent parameter the type as "object". A parameter of type "object" can have a nested "parameters" section to describe the parameters it contains. -
another StyleBook: When you use this type of parameter, then this parameter expects its value to be in the form of the parameters defined in the StyleBook denoting its type.
type that is the list of types. To do so, add [] at the end of the type. For example, if the type attribute is string[], this parameter takes a list of strings as input. You can provide one, two, or several strings for this parameter when creating a configuration from this StyleBook.
'network'
type: ipaddress, you can specify the network attribute to auto-allocate an IP address from an NetScaler Console IPAM network.
network attribute when you create a StyleBook configuration.
name: virtual-ip
label: "Load Balancer IP Address"
type: ipaddress
network: "network-1"
required: true
virtual-ip field auto-allocates an IP address from network-1. The IP address is released back to the network when the configuration is deleted.
'dynamic-allocation'
dynamic-allocation attribute is added in the parameter definition of type:ipaddress. Use this attribute to dynamically list the NetScaler Console IPAM networks. This attribute can take either true or false as an input. For type: ipaddress, specify the dynamic-allocation: true attribute to dynamically list the NetScaler Console IPAM networks that are in NetScaler Console. In the configuration pack creation form, you can do the following:
-
Select the required IPAM network from the list.
-
Specify an IP address that you want to allocate from the selected IPAM network.If no IP address is specified, the NetScaler Console auto-allocates an IP address from the selected IPAM network.
-
name: virtual-ip
label: "Load Balancer IP Address"
type: ipaddress
dynamic-allocation: true
required: true
virtual-ip field lists the NetScaler Console IPAM networks that are in NetScaler Console. Select a network from the list to auto-allocate an IP address from the network. The IP address is released back to the network when the configuration is deleted.
'key'
parameters:
- name: example-appname
type: string
label: Application Name
required: true
key: true
example-appname appears as the display key. The StyleBook user can use this key to identify this configuration pack.
'required'
'allowed-values'
allow-new-values attribute.
layout attribute.
-
name: ipaddress
type: string
allowed-values:
- SOURCEIP
- DEST IP
- NONE
-
name: TCP Port
type: tcp-port
allowed-values:
- 80
- 81
- 8080
tcp-ports, where each element of the list can only have values specified in allowed-values.
-
name: tcpports
type: tcp-port[]
allowed-values:
- 80
- 81
- 8080
- 8081
'allow-new-values'
allow-new-values and allowed-values attributes in a combination. This combination allows you to define a list of suggested values for a parameter and also accept new values.
-
name: port
type: tcp-port
allowed-values:
- 80
- 81
- 8080
allow-new-values: true
port while creating or updating a configuration pack.
'default'
-
The parameter has no default value.
-
A user does not provide a value for the parameter.
-
name: timeout
type: number
default: 20
-
name: protocols
type: string[]
default:
- TCP
- UDP
- IP
-
name: timeout
type: number
default: 20
-
name: tcpport
type: tcp-port
default: 20
'pattern'
-
name: appname
type: string
pattern: "[a-z]+"
'min-value'
number or tcp-port.
-
name: audio-port
type: tcp-port
min-value: 5000
min-value of numbers can be negative. However, the min-value for tcp-port must be positive.
'max-value'
number or tcp-port.
-
name: audio-port
type: tcp-port
min-value: 5000
max-value: 15000
'min-length'
-
name: appname
type: string
min-length: 3
'max-length'
min-length.
-
name: appname
type: string
max-length: 64
'min-items'
-
name: server-ips
type: ipaddress[]
min-items: 2
'max-items'
-
name: server-ips
type: ipaddress[]
min-items: 2
max-items: 250
'gui'
'columns'
gui attribute. Use this attribute to define the number of columns to display the type: object[] parameters in the NetScaler Console GUI.
'updatable'
gui attribute. Use this attribute to specify whether the parameter can be updated after the configuration is created. Set this attribute only on simple parameter types such as string, boolean, or number.
false, the parameter field is grayed out when you update the configuration.
'collapse_pane'
gui attribute. Use this attribute to specify whether the pane defining the layout of this object parameter is collapsible.
gui:
collapse_pane: true
columns: 2
parameters:
-
name: name
label: Name
description: Name of the application
type: string
required: true
-
name: ip
label: IP Address
description: The virtual IP address used for this application
type: ipaddress
required: true
-
name: svc-servers
label: Servers
type: object\[\]
required: true
parameters:
-
name: svc-ip
label: Server IP
description: The IP address of the server
type: ipaddress
required: true
-
name: svc-port
label: Server Port
description: The TCP port of the server
type: tcp-port
default: 80
-
name: lb-alg
label: LoadBalancing Algorithm
type: string
allowed-values:
- ROUNDROBIN
- LEASTCONNECTION
default: ROUNDROBIN
-
name: enable-healthcheck
label: Enable HealthCheck?
type: boolean
default: true
-
name: features-list
type: string[]
min-length: 1
max-length: 3
min-items: 1
max-items: 3
pattern: "\[A-Z\]+"
allowed-values:
- SP
- LB
- CS
default:
- LB
'layout'
gui attribute. Use this attribute to display the list values as radio buttons. Set the layout attribute to radio in the parameter section of a StyleBook definition. It applies to the parameter that has the allowed-values attribute. When you create a configuration pack, the NetScaler Console GUI displays the values in the allowed-values list as radio buttons.
-
gui:
layout: radio
allowed-values:
- One
- Two
- Three
'dependent-parameters'
gui attribute. It dynamically controls the parameter’s appearance or its initial value in the StyleBook configuration form based on the value specified in another parameter.
protocol can have a dependent-parameter certificate, which only appears if the protocol parameter value is SSL.
-
target-parameter: Specify the target parameter to which this condition applies.
-
matching-values: Specify the list of values of the source parameter that trigger the action.
-
action: Specify one of the following actions on the targeted parameter:
-
read-only: The parameter is made read-only. -
show: The parameter appears in the form if it is hidden. -
hide: The parameter is removed from the form. -
set-value: The parameter value is set to the value specified in the value attribute.
-
-
value: The value of the target parameter if the action is
set-value.
-
name: lb-virtual-port
label: "Load Balanced App Virtual Port"
description: "TCP port representing the Load Balanced application"
type: tcp-port
gui:
updatable: false
dependent-parameters:
-
matching-values:
- 80
target-parameter: $parameters.lb-service-type
action: set-value
allowed-values:
- HTTP
- TCP
- UDP
default: 80
lb-virtual-port parameter (source parameter).
80, the lb-service-type parameter triggers the set-value action. As a result, a user is allowed to select one of the following options:
-
HTTP
-
TCP
-
UDP
is_policy_expression
gui attribute. Use this attribute to enable the policy expression editor to compose a policy expression. Set the is_policy_expression to true in the parameter definition. This attribute can be used only on parameters of type 'string'.
parameters:
-
name: expression
type: string
label: Expression
required: true
gui:
is_policy_expression: true