slb template http-policy

Within an HTTP policy template, you can configure rules that match on URLs, hostnames, or cookie names. Requests that match a rule in the HTTP policy template are handled using the alternative WAF template that you bind to the HTTP policy template.

http-policy Specification

Type Collection
Object Key(s) name
Collection Name http-policy-list
Collection URI /axapi/v3/slb/template/http-policy/
Element Name http-policy
Element URI /axapi/v3/slb/template/http-policy/{name}
Element Attributes http-policy_attributes
Schema http-policy schema

Operations Allowed:

Operation Method URI Payload

Create Object

POST

/axapi/v3/slb/template/http-policy/

http-policy Attributes

Create List

POST

/axapi/v3/slb/template/http-policy/

http-policy Attributes

Get Object

GET

/axapi/v3/slb/template/http-policy/{name}

http-policy Attributes

Get List

GET

/axapi/v3/slb/template/http-policy/

http-policy-list

Modify Object

POST

/axapi/v3/slb/template/http-policy/{name}

http-policy Attributes

Replace Object

PUT

/axapi/v3/slb/template/http-policy/{name}

http-policy Attributes

Replace List

PUT

/axapi/v3/slb/template/http-policy/

http-policy-list

Delete Object

DELETE

/axapi/v3/slb/template/http-policy/{name}

http-policy Attributes

http-policy-list

http-policy-list is JSON List of http-policy Attributes

http-policy-list : [

http-policy Attributes

cookie-name

Description: Name of cookie to match. Matching is based on cookie values.

Type: string

Format: string-rlx

geo-location-match

Description: geo-location-match is a JSON List . Please see below for geo-location-match

Type: List

http-policy-match

Description: http-policy-match is a JSON List . Please see below for http-policy-match

Type: List

name

Description: Name of the template.

Type: string

Format: string-rlx

Required: Yes

user-tag

Description: Customized tag

Type: string

Format: string-rlx

uuid

Description: uuid of the object

Type: string

http-policy-match

Specification
Type list
Block object keys

match-string

Description: URL String

Type: string

Format: string-rlx

match-type

Description: ‘contains’: Select service group if URL string contains another string; ‘ends-with’: Select service group if URL string ends with another string; ‘equals’: Select service group if URL string equals another string; ‘starts-with’: Select service group if URL string starts with another string;

Type: string

Supported Values: contains, ends-with, equals, starts-with

service-group

Description: Service Group to be used (Service Group Name)

Type: string

Reference Object: /axapi/v3/slb/service-group

template

Description: ‘waf’: waf; (WAF template to be used)

Type: string

Supported Values: waf

template-name

Description: WAF template to be used (Template Name)

Type: string

Format: string-rlx

Reference Object: /axapi/v3/waf/template

type

Description: ‘cookie’: cookie value match; ‘host’: hostname match; ‘url’: URL match;

Type: string

Supported Values: cookie, host, url

geo-location-match

Specification
Type list
Block object keys

geo-location

Description: Geolocation name

Type: string

geo-location-service-group

Description: Service Group to be used (Service Group Name)

Type: string

Format: string-rlx

Reference Object: /axapi/v3/slb/service-group

geo-location-template

Description: ‘waf’: waf; (WAF template to be used)

Type: string

Supported Values: waf

geo-location-template-name

Description: WAF template to be used (Template Name)

Type: string

Format: string-rlx

Reference Object: /axapi/v3/waf/template