slb template dns class-list lid

Configure a Limit ID (LID) entry to the class list, to specify traffic limits for client traffic.

lid Specification

Type Collection
Object Key(s) lidnum
Collection Name lid-list
Collection URI /axapi/v3/slb/template/dns/{name}/class-list/lid/
Element Name lid
Element URI /axapi/v3/slb/template/dns/{name}/class-list/lid/{lidnum}
Element Attributes lid_attributes
Schema lid schema

Operations Allowed:

Operation Method URI Payload

Create Object

POST

/axapi/v3/slb/template/dns/{name}/class-list/lid/

lid Attributes

Create List

POST

/axapi/v3/slb/template/dns/{name}/class-list/lid/

lid Attributes

Get Object

GET

/axapi/v3/slb/template/dns/{name}/class-list/lid/{lidnum}

lid Attributes

Get List

GET

/axapi/v3/slb/template/dns/{name}/class-list/lid/

lid-list

Modify Object

POST

/axapi/v3/slb/template/dns/{name}/class-list/lid/{lidnum}

lid Attributes

Replace Object

PUT

/axapi/v3/slb/template/dns/{name}/class-list/lid/{lidnum}

lid Attributes

Replace List

PUT

/axapi/v3/slb/template/dns/{name}/class-list/lid/

lid-list

Delete Object

DELETE

/axapi/v3/slb/template/dns/{name}/class-list/lid/{lidnum}

lid Attributes

lid-list

lid-list is JSON List of lid Attributes

lid-list : [

lid Attributes

action-value

Description: ‘dns-cache-disable’: Disable DNS cache when it exceeds limit; ‘dns-cache-enable’: Enable DNS cache when it exceeds limit; ‘forward’: Forward the traffic even it exceeds limit;

Type: string

Supported Values: dns-cache-disable, dns-cache-enable, forward

conn-rate-limit

Description: Maximum DNS connection number of concurrent connections allowed for a client before the over-limit action is applied.

Type: number

Range: 1-2147483647

dns

Description: dns is a JSON Block . Please see below for dns

Type: Object

lidnum

Description: Specifies a list ID (LID) in the DNS template. LIDs contain DNS caching policies.

Type: number

Range: 1-31

Required: Yes

lockout

Description: Number of minutes during which to apply the over-limit action after the client exceeds a limit. The lockout period is activated when a client exceeds any limit.

Type: number

Range: 1-1023

log

Description: Generate logs when an over-limit action occurs. Enable logging of over-limit actions.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

log-interval

Description: Log interval (minute, by default system will log every over limit instance)

Type: number

Range: 1-255

over-limit-action

Description: Action to take when the DNS connection or request limit or rate is exceeded.

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

per

Description: Specifies the maximum number of new connections allowed for a client within the specified limit period. The limit period is specified in increments of 100 milliseconds.

Type: number

Range: 1-65535

user-tag

Description: Customized tag

Type: string

Format: string-rlx

uuid

Description: uuid of the object

Type: string

dns

Specification
Type object

cache-action

Description: ‘cache-disable’: Disable dns cache; ‘cache-enable’: Enable dns cache;

Type: string

Supported Values: cache-disable, cache-enable

Default: cache-disable

ttl

Description: Specifies number of seconds to keep an entry in the cache before removing it.

Type: number

Range: 1-65535

weight

Description: Weight for cache entry

Type: number

Range: 1-7