Questions tagged [apim]
230 questions
1
vote
1 answer
How to show the decimal value as it is when Deserializing using JSON.NET in Azure APIM?
I'm using Azure APIM policy expression to aggregate multiple responses. I have some decimal values in the response.
But while Deserializing , formatting was changed as shown in the output. I want to return as in the Input.
INPUT
{
"x1":…

Abdul Wahab
- 169
- 10
1
vote
2 answers
How to change timezone with Offset when Deserializing DateTime using JSON.NET in Azure APIM?
I'm using Azure APIM policy expression to aggregate multiple responses. In that one of the JSON response contains multiple dateTime fields. all of them are in UTC TZ. I want to deserialize all of the date fields to specific Timezone(in my case SGT…

Abdul Wahab
- 169
- 10
1
vote
2 answers
Terraform - Azure - Where do I specify the backend API for each api operation in Azure API Management through terraform?
I am trying to create API Management Service using terraform. I am able to map most of the components from the UI to the documentation.
But, I cannot see any resource block or configuration option in
azurerm_api_management_api_operation
to add a…

Sadiq
- 11
- 1
1
vote
1 answer
Azure APIM with App gateway integration question
I'm using Azure API Management.
Since APIM does not provide built in WAF, i'd like to use app gateway in front of APIM.
According to the following article, it is…

arnold park
- 21
- 3
1
vote
1 answer
Multiple version sets and multiple APIs under each of the version sets to Azure APIM using terraform, Currently I get an error mentioned in the body
I have used depends_on version set in my API resource but still get the below error
Error - Future#WaitForCompletion: the number of retries has been exceeded: StatusCode=400 -- Original Error: Code="ValidationError" Message="One or more fields…

user2667403
- 11
- 2
1
vote
1 answer
Is it possible to disable "Try it" functionality on API Management Developer Portal?
I'm working to customize APIM Dev Portal and I dont want allow user use 'Try it' functionality so How to disable it ?

Cristiano
- 21
- 1
1
vote
1 answer
Set body in Azure APIM Policy
My incoming payload is
{ "data":"testdata"}
along with a header X-Type = headerType, I want to map the header into the payload before sending it to the backend system
I want to convert the payload as below
{"data":"testdata","type":"headerType"}
I…

Satheesh Kumar
- 797
- 7
- 31
1
vote
1 answer
Can apim policy fragments be imported/exported
I've read the documentation and while the policy fragment idea seems good for code reuse, the system doesn't seem to provide a way to deploy them in an automated way.
I've even exported the entire configuration of the apim to git and could not find…

user3446812
- 11
- 2
1
vote
1 answer
Parsing JSON Array in Azure APIM policy
I need some help Parsing JSON Array in Azure APIM policy. My input to my API is a JSON Array but I want the output of the API to be JSON without the "[]", I just can't get the policy to remove them.
Here is the JSON Array input to my API:
[
{
…

James De Luca
- 13
- 2
1
vote
1 answer
Azure API Management Policies - Using conditional statements to transform body
I am using C# syntax to transform payload body Using conditional statements to transform body, I want to transform one key of the payload body using conditional statement if possible. More explanation of the scenario is shown in code below.
I tried…

jkhanbanner
- 59
- 2
1
vote
1 answer
Azure API Management Policy(how to do rewrite-uri)
I am new to Azure API Management. I am constructing a policy that will change the initial request url.How can I extract the insurer_id from body and pass it to my backend.
{
"insurer_name": "Tony",
"insurer_id": "12345",
"comments":…

jkhanbanner
- 59
- 2
1
vote
1 answer
Azure APIM Policies Transforming Body of Payload
I am still currently exploring in APIM. I have a payload in payload #1, which I want to transform into another payload # 2(expected).
How would I edit my policy to construct this pay load?
Payload 1
{
"dependtee_name": "Steve",
…

jkhanbanner
- 59
- 2
1
vote
1 answer
Export/Import Azure API Management Developer Portal UI changes
I have made some UI changes on APIM developer portal.
Is there a way to export the UI changes that I have made and import those changes in some other developer portal?
Changes are only in UI.

gaurav kandpal
- 23
- 1
- 3
1
vote
1 answer
API Manager 4.1.0 import CAR by apictl
Is it possible to import CAR archive via apictl into the api manager? Or maybe is there another way to import this archive? I can't use carbon console.
Thanks

Gregory
- 41
- 5
1
vote
1 answer
How can i get the headers from a response of a policy in Azure APIM Policy?
Using the send-request Policy in Azure APIM. Able to get the response and extract the Body. However, struggling with extracting the response headers ?
Here is the code I am using to send the request with the send-request policy in the inbound…

Ais Amin
- 21
- 4