slb template policy forward-policy action

action list

action Specification

Parameter Value
Type Collection
Object Key(s) name
Collection Name action-list
Collection URI /axapi/v3/slb/template/policy/{name}/forward-policy/action
Element Name action
Element URI /axapi/v3/slb/template/policy/{name}/forward-policy/action/{name}
Element Attributes action_attributes
Partition Visibility shared
Schema action schema

Operations Allowed:

OperationMethodURIPayload

Create Object

POST

/axapi/v3/slb/template/policy/{name}/forward-policy/action

action attributes

Create List

POST

/axapi/v3/slb/template/policy/{name}/forward-policy/action

action attributes

Get Object

GET

/axapi/v3/slb/template/policy/{name}/forward-policy/action/{name}

action attributes

Get List

GET

/axapi/v3/slb/template/policy/{name}/forward-policy/action

action-list

Modify Object

POST

/axapi/v3/slb/template/policy/{name}/forward-policy/action/{name}

action attributes

Replace Object

PUT

/axapi/v3/slb/template/policy/{name}/forward-policy/action/{name}

action attributes

Replace List

PUT

/axapi/v3/slb/template/policy/{name}/forward-policy/action

action-list

Delete Object

DELETE

/axapi/v3/slb/template/policy/{name}/forward-policy/action/{name}

action attributes

action-list

action-list is JSON List of action attributes

action-list : [

action attributes

action1

Description ‘forward-to-internet’: Forward request to Internet; ‘forward-to-service-group’: Forward request to service group; ‘forward-to-proxy’: Forward request to HTTP proxy server; ‘drop’: Drop request;

Type: string

Supported Values: forward-to-internet, forward-to-service-group, forward-to-proxy, drop

drop-message

Description drop-message sent to the client as webpage(html tags are included and quotation marks are required for white spaces)

Type: string

Format: string-rlx

Maximum Length: 1023 characters

Maximum Length: 1 characters

Mutual Exclusion: drop-message and drop-redirect-url are mutually exclusive

drop-redirect-url

Description Specify URL to which client request is redirected upon being dropped

Type: string

Format: string-rlx

Maximum Length: 1023 characters

Maximum Length: 1 characters

Mutual Exclusion: drop-redirect-url, drop-response-code, and drop-message are mutually exclusive

drop-response-code

Description Specify response code for drop action

Type: number

Range: 100-599

Mutual Exclusion: drop-response-code and drop-redirect-url are mutually exclusive

fake-sg

Description service group to forward the packets to Internet

Type: string

Maximum Length: 63 characters

Maximum Length: 1 characters

fall-back

Description Fallback service group for Internet

Type: string

Maximum Length: 63 characters

Maximum Length: 1 characters

fall-back-snat

Description Source NAT pool or pool group for fallback server

Type: string

Format: string-rlx

Maximum Length: 63 characters

Maximum Length: 1 characters

Mutual Exclusion: fall-back-snat and fall-back-snat-pt-only are mutually exclusive

fall-back-snat-pt-only

Description Source port translation only for fallback server

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

Mutual Exclusion: fall-back-snat-pt-only and fall-back-snat are mutually exclusive

forward-snat

Description Source NAT pool or pool group

Type: string

Format: string-rlx

Maximum Length: 63 characters

Maximum Length: 1 characters

Mutual Exclusion: forward-snat and forward-snat-pt-only are mutually exclusive

forward-snat-pt-only

Description Source port translation only

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

Mutual Exclusion: forward-snat-pt-only and forward-snat are mutually exclusive

http-status-code

Description ‘301’: Moved permanently; ‘302’: Found;

Type: string

Supported Values: 301, 302

Default: 302

log

Description enable logging

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

name

Description Action policy name

Type: string

Format: string-rlx

Maximum Length: 63 characters

Maximum Length: 1 characters

proxy-chaining

Description Enable proxy chaining feature

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

proxy-chaining-bypass

Description Forward all https packets to upstream proxy

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

real-sg

Description service group to forward the packets

Type: string

Maximum Length: 63 characters

Maximum Length: 1 characters

sampling-enable

Type: List

support-cert-fetch

Description Fetch server certificate by upstream proxy

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

user-tag

Description Customized tag

Type: string

Format: string-rlx

Maximum Length: 127 characters

Maximum Length: 1 characters

uuid

Description uuid of the object

Type: string

Maximum Length: 64 characters

Maximum Length: 1 characters

sampling-enable

Specification Value
Type list
Block object keys  

counters1

Description ‘all’: all; ‘hits’: Number of requests matching this destination rule;

Type: string

Supported Values: all, hits