To increase the response timeout from 60 seconds to 120 seconds, follow the steps below.
- Verify the Current Response Timeout
- Use the following GET API to view the existing application profiles and identify the one used by the virtual server.
- GET https://<NSX-Manager-FQDN-or-IP>/api/v1/loadbalancer/application-profiles
- You can confirm that the response_timeout is set to 60 seconds by default.
- Retrieve the Application Profile Details
- Once you have identified the Application Profile ID, retrieve its configuration details:
- GET https://<NSX-Manager-FQDN-or-IP>/api/v1/loadbalancer/application-profiles/<application-profile-id>
- Copy the body of the JSON output.
- In your REST client (such as Postman or curl):
- Open the Body tab -> Select Raw -> Choose JSON format
- Paste the copied JSON body content
- Modify the Response Timeout
- In the copied JSON body, update the following values:
- Example :
- "response_timeout": 120,
- "_revision": 1
- Update the Application Profile
- After editing, use the PUT API to update the Application Profile with the modified timeout value:
- PUT https://<NSX-Manager-FQDN-or-IP>/api/v1/loadbalancer/application-profiles/<application-profile-id>
- Associate the Virtual Server with the Updated Profile. Finally, associate your Virtual Server with the new or updated HTTP Application Profile that contains the xxx-second response timeout.
For reference: NSX-T Data Center REST API