The Azure REST API for Snapshot - Grant Access does not have a specific maximum timeout value documented that you can directly configure as a constant. The operation itself is governed by Azure's internal timeout policies, and while you can set a durationInSeconds
parameter in your request to control how long the SAS token is valid, this is not the same as a timeout for the API operation itself. If you're looking to set a custom timeout for your HTTP request (240 seconds), you can do this within your application's HTTP client configuration. However, keep in mind that this will not affect the API's internal processing time but will control how long your application waits for a response.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.