azure-api-management

Do Azure API Mgmt have a length limit on path/parameters?

廉价感情. 提交于 2019-12-23 17:31:15
问题 I have some APIs published in Azure API Management, that call a REST web application behind the scenes. Most of the endpoints use the format: https://company.azure-api.net/dom/ep/{pathParamVal}?{queryParamName}={queryParamVal} If {queryParamVal} is a really long string which causes the URL length to exceed 350-400 characters, everything works as expected. But if I specify that same string value as the {pathParamVal} , I get a HTTP 400 error code - HTTP Error 400. The request URL is invalid. .

Is it possible to use Azure API Management and Azure ACS (kubernetes) as frontend and backend?

天涯浪子 提交于 2019-12-23 16:28:55
问题 I would like to create a simple architecture on Azure. My high level design is very similar to the picture below (source: https://www.import.io/post/using-amazon-lambda-and-api-gateway/) I do want to access the internal services via the Azure API Management. What I can see on Microfos documentation page is that this simple and secure architecture is not mentioned as a reference: https://docs.microsoft.com/en-us/azure/container-service/container-service-kubernetes-walkthrough I have the

How can you use Azure API Management policy to load balance calls to a backend service?

喜夏-厌秋 提交于 2019-12-23 05:04:58
问题 How can you use policy to load balance calls to a pair of backend services? (in this case a pair of Logic Apps in different regions) I've read through the API Management policies and can see something around the control flow but I can't work out how to (a) test the back-end service is available, and then (b) change the call to the backup service if the primary is unavailable <backend> <forward-request/> </backend> 回答1: One more way to achieve this could be that you can use the retry policy

Azure API Management- secure API through Client Certificate

时光怂恿深爱的人放手 提交于 2019-12-23 04:29:17
问题 I am testing authenticate against Client Certificate functionality with out of the box Echo API Get request, I have added a inbound rule to check the request has certificate I am using self signed certificate, I have updated it under CA and client certificates <inbound> <choose> <when condition="@(context.Request.Certificate == null)"> <return-response> <set-status code="403" reason="Invalid client certificate"/> </return-response> </when> </choose> <base /> </inbound> In my client

Manage versioned API in Azure API Manager

时光毁灭记忆、已成空白 提交于 2019-12-22 12:18:13
问题 I´m looking into host our web API in Azure using an API app. I am using the Azure API Manager in front of the API App to expose the developer portal to some of our consumers. The web API is built in .NET core and it has version support using the URL (https://example.com/api/v2/controller...). I have given it swagger support and one swagger.json is created for each version. These swagger files I use in my ARM templates to set up API Manager and expose this versioned API. When adding a version

Is it possible to automate customization of the “Developer Portal” in Azure API Management?

∥☆過路亽.° 提交于 2019-12-20 07:36:58
问题 The dilemma we face with API Management is being able to deploy the custom Developer Portal (customized through the APIM publisher portal UI) changes to each different environment (QA and PROD) without requiring manual configuration for each of those environments. Is this possible? The only way I can think of making this possible is through a REST API in the Publisher Portal for managing developer portal configurations. Is there a REST API for this? And if not, are there near term plans for

Reusing APIM policy expressions

偶尔善良 提交于 2019-12-20 05:56:30
问题 I have some complex policy expressions which i want to reuse across different Operations. Is there a way to achieve this in Azure APIM? The policy expressions can be used at different scopes such as Global, Product, API or operational scopes. To be very clear,let us say i have a utility function which is written as a policy expression. I want to reuse it in different APIs , as well as at different Operations. At the moment i need to copy the complex expression in all places where i want to

Power BI - Call Azure API with nextLink (next page)

坚强是说给别人听的谎言 提交于 2019-12-19 11:57:42
问题 Apologies, I'm new to Power BI. I'm using Power BI to call an Azure API that will list all the VMs in my subscription, however it will only show the first 50 before having a nextLink. Here is the API I'm calling; https://management.azure.com/subscriptions/< subscription >/providers/Microsoft.Compute/virtualMachines?api-version=2017-12-01 I've seen other pages and forums with a similar issue (such as Microsoft API), but not for Azure API. I messed about with their fix, but could not work out

Azure Api management Is it possible to disable Subscription Key

不问归期 提交于 2019-12-18 08:43:28
问题 Is it a must that Subscription Key sent as part of the request when call through API Managment? is there a way to disable this option? 回答1: Create a new product and uncheck "Require subscription" in its settings. Any API added to such product will be callable without a key, i.e. anonymously. 来源: https://stackoverflow.com/questions/51376248/azure-api-management-is-it-possible-to-disable-subscription-key

Convert response body from XML to Json in API Management Policy Expression when forwarding response to different URL

柔情痞子 提交于 2019-12-14 03:05:46
问题 How can I change the response body from XML to Json when forwarding the response to a different URL? I'm specifically forwarding the response to Azure Service Bus. I've tried many different ways to serialize XML to json but with no luck because of the restrictions of some JsonConvert methods that's not allowed in policy expressions. And no, <json-to-xml apply="content-type-json" consider-accept-header="true" /> is not the solution :) <outbound> <base /> <send-request mode="new" response