slb template virtual-server

Binds a virtual server template to the virtual server. Settings in the template are used to configure the virtual server.

Some of the parameters that can be set using a virtual server template can also be set on the individual virtual server.

You can bind only one virtual server template to a virtual server. However, you can bind the virtual server template to multiple virtual servers.

virtual-server Specification

Type Collection
Object Key(s) name
Collection Name virtual-server-list
Collection URI /axapi/v3/slb/template/virtual-server/
Element Name virtual-server
Element URI /axapi/v3/slb/template/virtual-server/{name}
Element Attributes virtual-server_attributes
Schema virtual-server schema

Operations Allowed:

Operation Method URI Payload

Create Object

POST

/axapi/v3/slb/template/virtual-server/

virtual-server Attributes

Create List

POST

/axapi/v3/slb/template/virtual-server/

virtual-server Attributes

Get Object

GET

/axapi/v3/slb/template/virtual-server/{name}

virtual-server Attributes

Get List

GET

/axapi/v3/slb/template/virtual-server/

virtual-server-list

Modify Object

POST

/axapi/v3/slb/template/virtual-server/{name}

virtual-server Attributes

Replace Object

PUT

/axapi/v3/slb/template/virtual-server/{name}

virtual-server Attributes

Replace List

PUT

/axapi/v3/slb/template/virtual-server/

virtual-server-list

Delete Object

DELETE

/axapi/v3/slb/template/virtual-server/{name}

virtual-server Attributes

virtual-server-list

virtual-server-list is JSON List of virtual-server Attributes

virtual-server-list : [

virtual-server Attributes

conn-limit

Description: Specifies the maximum number of connections allowed on virtual servers that use this template.

Type: number

Range: 1-8000000

Default: 8000000

conn-limit-no-logging

Description: Disables logging of connections over the limit.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

conn-limit-reset

Description: Specifies the action to take for connections after the connection limit is reached on the virtual server. You change the action to reset and the connections will be reset.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

conn-rate-limit

Description: Limits the rate of new connections the ACOS device is allowed to send to servers that use this template. When a real server reaches its connection limit, the ACOS device stop selecting the server for client requests.

Type: number

Range: 1-1048575

conn-rate-limit-no-logging

Description: Disables logging for connection over limit.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

conn-rate-limit-reset

Description: Send a reset (RST) to a client after the connection rate has been exceeded. By default (without this option), the ACOS device silently drops the request.
If you configure a limit for a server and also for an individual port, the ACOS device uses the lower limit.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

icmp-lockup

Description: Specifies maximum rate lockup number of ICMP packets allowed per second before the ACOS device locks up ICMP traffic to the virtual server. When ICMP traffic is locked up, all ICMP pacets are dropped until lock up expires. The maximum rate must be larger than the normal rate.

Type: number

Range: 1-65535

icmp-lockup-period

Description: Number of seconds for which the ACOS device drops all ICM6 traffic to the virtual server, after the maximum rate is exceeded.

Type: number

Range: 1-16383

icmp-rate-limit

Description: Configures ICMP (v4) rate limiting for the virtual server, to protect against denial-of-service (DoS) attacks.
Specifies normal rate is the maximum number of ICPM packets allowed per second. If the virtual server receives more than the normal rate of ICMP packets, the excess packets are dropped until the next one-second interval begins.

Type: number

Range: 1-65535

icmpv6-lockup

Description: Specifies maximum number of ICMPv6 packets allowed per second before the ACOS device locks up ICMPv6 traffic to the virtual server. When ICMPv6 traffic is locked up, all ICMPv6 packets are dropped until the lockup expires. The maximum rate must be larger than the normal rate.

Type: number

Range: 1-65535

icmpv6-lockup-period

Description: Specifies number of seconds for which the ACOS device drops all ICMPv6 traffic to the virtual server, after the maximum rate is exceeded.

Type: number

Range: 1-16383

icmpv6-rate-limit

Description: Configures ICMPv6 rate limiting for the virtual server, to protect against denial-of-service (DoS) attacks. Specifies normal rate of maximum number of ICMPv6 packets allowed per second. If the virtual server receives more than the normal rate of ICMP packets, the excess packets are dropped until the next one-second interval begins.

Type: number

Range: 1-65535

name

Description: Name of the template.

Type: string

Format: string-rlx

Default: default

Required: Yes

rate-interval

Description: Specifies whether the connection rate limit applies to one-second intervals or 100-ms intervals.

Type: string

Supported Values: 100ms, second

Default: second

subnet-gratuitous-arp

Description: Send gratuitous ARP for every IP in the subnet virtual server

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

user-tag

Description: Customized tag

Type: string

Format: string-rlx

uuid

Description: uuid of the object

Type: string