HTTPSwitchingAction
{
"action": "string",
"file": {
"content_type": "string",
"file_content": "string",
"file_length": 0
},
"other_status_code": 0,
"pool_group_ref": "string",
"pool_ref": "string",
"server": {
"hostname": "string",
"ip": {
"addr": "string",
"type": "string"
},
"port": 0
},
"status_code": "string"
}
Content switching action type. Enum options - HTTP_SWITCHING_SELECT_POOL, HTTP_SWITCHING_SELECT_LOCAL, HTTP_SWITCHING_SELECT_POOLGROUP. Allowed with any value in Enterprise, Basic, Enterprise with Cloud Services edition. Allowed in Essentials (Allowed values- HTTP_SWITCHING_SELECT_POOL,HTTP_SWITCHING_SELECT_LOCAL) edition.
User-defined HTTP status code to use when serving the local response. Use this to provide codes not available in the list within status_code. Allowed values are 200-599. Field introduced in 30.2.1. Allowed with any value in Enterprise, Enterprise with Cloud Services edition.
UUID of the pool group to serve the request. It is a reference to an object of type PoolGroup. Allowed with any value in Enterprise, Basic, Enterprise with Cloud Services edition.
UUID of the pool of servers to serve the request. It is a reference to an object of type Pool. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.
HTTP status code to use when serving local response. Enum options - HTTP_LOCAL_RESPONSE_STATUS_CODE_200, HTTP_LOCAL_RESPONSE_STATUS_CODE_204, HTTP_LOCAL_RESPONSE_STATUS_CODE_403, HTTP_LOCAL_RESPONSE_STATUS_CODE_404, HTTP_LOCAL_RESPONSE_STATUS_CODE_429, HTTP_LOCAL_RESPONSE_STATUS_CODE_501. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.