Alternative to target.port variable available before Target Response

We are using the flow variable "target.port" to get the target backend port (it is configured in a Target Server) and save it in our Message Logging logs. 

Unfortunately, this variable has a scope limited to the Target Response, so it is null or empty if the target backend doesn't response to us (for example, when we can not reach the target, or when a Time Out happens). In those situations, the port is not being logged.

We have reviewed https://docs.apigee.com/api-platform/reference/variables-reference but we can not see any variable like "target.port" which is accesible out of the Target Response scope.

Is there any way of getting the target port of the request when there is no target response?

0 0 42
0 REPLIES 0