Is there a general maximum timeout for Azure REST API Snapshot-Grant Access

Ding Song 20 Reputation points Microsoft Employee
2024-08-28T03:42:51.1+00:00

Here is the API, can we set a const value as its maximum timeout, such as 240s?

https://learn.microsoft.com/en-us/rest/api/compute/snapshots/grant-access?view=rest-compute-2024-07-01&tabs=HTTP

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,066 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vinodh247 16,916 Reputation points
    2024-08-28T04:48:56.9333333+00:00

    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.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.