Target timeout elements

The target timeout policy includes several elements and attributes that define how the ION API Gateway handles response time from a target server.

The target timeout policy contains these key elements and attributes:

  • targetTimeout: The root element of the policy. It includes attributes such as version, name, displayName, and enabled that describe and activate the policy.
  • timeout: Specifies the timeout value in milliseconds that the API Gateway uses. In the example, it is set to 120000 milliseconds (two minutes). You can set a value between 60000 milliseconds (one minute) and 300000 milliseconds (five minutes), depending on how long you want the Gateway to wait for a response.
  • xmlns, xmlns:xsi, and xsi:schemaLocation: These attributes define XML namespaces and specify the location of the schema file. They ensure that the policy configuration is valid and correctly interpreted by the Gateway.

Adjusting the timeout value in this policy allows you to control how long the API Gateway waits for a response from the target server. A longer timeout is useful when requests require more time to process, but setting it too high can lead to inefficient resource usage or delayed error handling.