Refer to the table below for details on the properties variables.

Parameter

Type

Choices

Comment

enable

Int

- 0

- 1

Activate or deactivate the Virtual Service:

0 - Deactivated

1 - Activated

intercept Int

- 0

- 1

0 disables WAF (an WAF is ignored)

1 enables WAF

intercept_opts List The list of intercept options to enable
alert_threshold Int The number to set the threshold for alerts
intercept_post_other_content_types List POST content types for WAF
waf_rules List The list of rules you want to add to WAF in the format ['<rule_type>/<rule_name>: <ids_to_disable>,<id_to_disable2>']
nickname String The nickname to give to the service
port Int The port of the service
protocol String

- tcp

- udp

The type of protocol for the Virtual Service
ip String The IP address of the Virtual Service
vs_type String

- http

- gen

- http2

- tls

The service type of the Virtual Service
server_init Int

0 - Normal Protocols

1 - SMTP

2 - SSH

3 - Other Server Initiating

4 - IMAP4

5 - MySQL

6 - POP3

By default, the LoadMaster will not initiate a connection with a Real Server until it has received some data from a client. This prohibits certain protocols from working because they need to communicate with the Real Server before transmitting data. If the Virtual Service uses one of these protocols, specify the protocol using the server_init parameter to enable it to work correctly.
start_tls_mode Int

0 - HTTP/HTTPS

1 - SMTP (STARTTLS if requested)

2 - SMTP (STARTTLS always)

3 - FTP

4 - IMAP

6 - POP3

If you want to set the start_tls_mode to 0 (HTTP/HTTPS), the Service Type (vs_type)needs to be set to HTTP/HTTPS (http) for this to work
critical Int

- 0

- 1

Mark the parent Virtual Service down if not available.

0 - False

1 - True

status Int Enable or disable the SubVS
limit Int The amount of connections that can connect to the SubVS
Weight Int The weight of the SubVS