is there a sleep policy or any alternative in azure apim so that i can delay for 5 seconds to particular response?enter image description here In the attached image i need to give 5 seconds of delay or sleep condition to the highlighted condition.
Azure APIM sleep or delay policy
2.3k Views Asked by Deepak Jain At
3
There are 3 best solutions below
0
Joe Eng
On
You can use the retry policy to emulate a delay:
https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#Retry
<retry condition="@(true)" count="1" interval="5" />
0
Kushal Patel
On
There's no in built policy which supports delay. Still as a work around following policy can be included.
Following policy sets a variable after 500 milliseconds.
<set-variable name="delayExpression" value="@{
var curr = System.DateTime.UtcNow.AddMilliseconds(500);
while(System.DateTime.UtcNow < curr){
continue;
}
return System.DateTime.UtcNow;
}"/>
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in API
- Google Sheets API - Append Request not working
- Is there really no product for docs that has these?
- How to show suggested content in response using Azure Cognitive Search?
- error message when closing current position in binance futures, using ccxt library
- How to filter API data in React Native
- I have fetched an API with JS, but the output looks really bad and I don't know how to fix it
- Session is not storing in react and Asp Dot Core Web API
- Apex charts not rendering series value, showing cannot map values of NULL
- Configure IIS to accept API calls only from API Manager, Deny from direct calls
- Problems with API return using the Axios library in NextJS
- How to query by Iteration in pyral?
- Is there a way to have a user enter a url query and have a single function filter a database?
- Cant get value in Vue from data
- Read stories/posts using instagram API
- Need To Make Minor Change To REST API Response
Related Questions in AZURE-API-MANAGEMENT
- How to set up the link for the paginated files in the Get Rows(V2) Logic App connector and pass it via Azure API call?
- What's the difference between Microsoft.ApiManagement/service/portalsettings and Microsoft.ApiManagement/service/portalconfigs
- How to read agent application data to azure sql using apim and logic apps
- Enabling minimum apiVersion to 2021-08-01 in Azure API Management causing saving issues or deployment errors for existing logic apps
- How to LIMIT cost to 100 API calls max in a day even if someone has my API endpoint details
- Connect Azure front door with APIM and Azure Web App
- Azure APIM Policy, managed identity resource value from namevalue
- Azure OpenAI and load balancer configuration using APIM
- Prefer not to manually pass the Authorization header after logging in to the Azure APIM developer portal
- Azure APIM: check if parameter already exsit in dictionary
- Issue accessing Azure APIs in Visual Studio Code
- Create multiple subscription keys for one API in Azure
- Problem when trying to update the Azure API Gateway operation backend via Terraform
- Azure APIM Import OpenAPI Spec Failing in GitHub Build Actions
- How to read the API error message from Azure APIM using the qusto query hit from c# code in Rest API
Related Questions in POLICIES
- How to audit MFA status of users in Azure
- installing kyverno policies on kubernetes cluster using helm charts
- How to set Content Security Policy for Laravel bundle assets using spatie
- Prevent pod deletion in kubernetes but allow scaling
- How do I modify, via PowerShell, Windows Group Policy settings that don't have a Registry setting?
- Issue adding specific URL in InsecureContentAllowedForUrls
- Linking Google's Cookie Policy on my website
- Kyverno ClusterPolicy exception not working as expected while verifying ocisourcelabels
- not authorized to perform: eks:CreateCluster
- Persistent Warning Message on Google Play Store Listing Despite SDK Update
- Using AOP to inject Security Access Policies at runtime
- How to programmatically add tags to a GCP dataset
- Github Action : How to run workflow and deploy container instance with required tags policies
- How to add B2C to MAUI?
- How do I add custom claims to a ClaimsPrincipal after authentication in a .net 6 blazor application?
Related Questions in APIM
- Enabling minimum apiVersion to 2021-08-01 in Azure API Management causing saving issues or deployment errors for existing logic apps
- Azure Policy not working (check for lowercase APIM Url)
- Create multiple subscription keys for one API in Azure
- Azure APIM Inbound Policy - validate-content - unable to dynamically set schema-id
- Azure APIM Proxy API - Policy Issue
- API Management APIs Endpoints Consistency
- Azure API Management APIs endpoint are not displaying as expected
- Azure APIM: Browser asking to choose Certificate every time for API testing in Developer Portal
- APIM Management Content Security Policy Settings are not working as expected
- Azure apim named value for backend setup
- Azure Application Gateway Mutual authentication server variables empty
- WSO2 APIM 3.2 is error: org.wso2.carbon.registry.RegistryException
- Using APIOPS how to add named values into policies.xml
- WSO2AM 4.2.0 login failed while using LDAP secondary user stores
- Azure APIM cache-lookup policy error fallback
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
That is not possible with APIM alone. You could make a call to another endpoint using send-request, that would delay APIM's response, but you have to have such endpoint first.