azure-api-management

Use Azure Api Management as a passthrough

ε祈祈猫儿з 提交于 2019-12-04 10:09:28
I would like to create a policy in Azure API Management that forwards all calls that start with the path "proxy/search" to another url. However, i don't want to have to import/create endpoints in APIM for every possibility since this makes it a maintenance nightmare. For example.. GET https://whatever.azure-api.net/proxy/search?q=dogs GET https://whatever.azure-api.net/proxy/search/categories?q=dogs GET https://whatever.azure-api.net/proxy/search/categories/x/y/z/etc....?q=blah to the corresponding... GET https://mysearchapi.com/?q=dogs GET https://mysearchapi.com/categories?q=dogs GET https:/

Azure Functions and Azure Application Gateway or API Management

我与影子孤独终老i 提交于 2019-12-04 05:07:22
I have several Microsoft Azure functions developed. I would like to use a gateway with firewall to make my Azure functions available and protected using one public IP only. Is there way to use Azure Functions with Azure Application Gateway or API Management? What would be the best approach in this case? Azure API management allows you to provide a single access point for all your customers. If you've made a HTTP triggered Azure Function (or any SOAP or REST service for that matter), you can use API management to provide a central access point for this function. This allows you to do load

How to create an array in a for loop in Liquid?

戏子无情 提交于 2019-12-04 02:15:22
I'm trying to create an array from a list of objects using Liquid syntax: {% for operation in menuItems %} {% assign words1 = operation.Title | split: '_' %} {% assign controllerName = words1 | first %} {% assign controllersTmp = controllersTmp | append: '_' | append: controllerName %} {% endfor %} I want to split the controllersTmp to get my array, but at this point my controllersTmp is empty. Any help ? You can directly create a new empty array controllers and concat to it your controllerName converted into an array using the workaround split:'' . The result is directly an array, without the

Azure API Management > CORS and POST

巧了我就是萌 提交于 2019-12-04 02:10:17
I'm using Azure API Management to deliver a clean interface to third parties for integration purposes. I want do a POST with a JSON object to create this object in the backend. This works fine in the test console available in the portal site, but it doesn't work when I try to do a simple client script from a web page: $.ajax({ url: 'https://.azure-api.net/api/samplerequest/create?' + $.param(params), type: 'POST', data: JSON.stringify(sampleRequest), contentType: "application/json; charset=utf-8", dataType: "json", success: function (data, par2, par3) { $("#txtResult").val(JSON.stringify(data)

Is it possible to make a call to an Azure API Rest url without a subscription key?

自作多情 提交于 2019-12-03 16:38:24
I just want to be able to do a rest call using Azure Web Api Management without needing to pass the subscription-key in the url. Is that possible? Azure API management allows for anonymous subscriptions. Create a Product without requiring a subscription (Product -> Settings -> Require Subscription) Add your API to this product. https://azure.microsoft.com/en-us/documentation/articles/api-management-howto-add-products/ You can do this: API Management Portal -> Product -> click a product -> Settings -> Require Subscription However, the subscription key provides identification to the Azure API

How to use a variable when returning response in policy definition?

旧街凉风 提交于 2019-12-02 20:13:52
问题 I'm configuring inbound policies in an instance of Azure API Management. First, I set a variable: <set-variable name="var1" value="" /> Then I send a request <send-request mode="new" response-variable-name="var1" timeout="20" ignore-error="false"> Which returns a JSON. When testing I get the following message in trace tab: GET request to 'https://my-api.azure-api.net/api/data' has been sent, result stored in 'var1' variable. I guess the send-request policy works and the result is stored in

Reusing APIM policy expressions

拟墨画扇 提交于 2019-12-02 07:47:06
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 use it. I want to know if there is any possibility to reuse the code. If you're looking to define a

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

拈花ヽ惹草 提交于 2019-12-01 14:10:26
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 how to apply it to mine. Their code; let GetUserInfo = (Path)=> let Source = Json.Document(Web.Contents

API Management Basic Authentication

雨燕双飞 提交于 2019-12-01 10:35:16
问题 I have an Azure API Management, added a logic app as back end API. Now I want to enable basic authentication for the API Management so that when client will call the logic app url which is protected by API Management need to provide username and password. I am familiar with access restriction policy of API Management , now my question is where and how to set basic authentication credentials in the APIM? 回答1: Here is a code snippet to set up basic auth wuth username="someUser" and password=

Azure Api management Is it possible to disable Subscription Key

风格不统一 提交于 2019-11-29 14:52:12
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? 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