slb template policy forward-policy action¶
action list
action Specification¶
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 Schema action schema
Operations Allowed:
Operation | Method | URI | Payload | |
---|---|---|---|---|
Create Object | POST | /axapi/v3/slb/template/policy/{name}/forward-policy/action | ||
Create List | POST | /axapi/v3/slb/template/policy/{name}/forward-policy/action | ||
Get Object | GET | /axapi/v3/slb/template/policy/{name}/forward-policy/action/{name} | ||
Get List | GET | /axapi/v3/slb/template/policy/{name}/forward-policy/action | ||
Modify Object | POST | /axapi/v3/slb/template/policy/{name}/forward-policy/action/{name} | ||
Replace Object | PUT | /axapi/v3/slb/template/policy/{name}/forward-policy/action/{name} | ||
Replace List | PUT | /axapi/v3/slb/template/policy/{name}/forward-policy/action | ||
Delete Object | DELETE | /axapi/v3/slb/template/policy/{name}/forward-policy/action/{name} |
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
forward-snat
Description Source NAT pool or pool group
Type: string
Format: string-rlx
Maximum Length: 63 characters
Maximum Length: 1 characters
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: Listsupport-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 Type list Block object keys counters1
Description ‘all’: all; ‘hits’: Number of requests matching this destination rule;
Type: string
Supported Values: all, hits
stats data¶
Counter | Size | Description | |
---|---|---|---|
hits | 8 | Number of requests matching this destination rule |