Azure APIM : OpenAPI shows gateway url in the servers section and not the backend url

Amit-J 341 Reputation points
2022-10-28T10:07:16.927+00:00

Hi,

Importing OpenAPI into apim updates the "web service url" in settings correctly which is also the backend target url.
But, checking the swagger in APIM ---API--FrontEnd shows that servers section is updated with apim instance url, why is that so ?
I cannot see my backend target in apim swagger anymore.
So, because of this issue, exporting openapi from apim produces incorrect openapi document.
Please let me know if I am missing something here ?

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

Answer accepted by question author
  1. JananiRamesh-MSFT 29,436 Reputation points Moderator
    2022-11-01T04:25:04.307+00:00

    Hi @Amit-J Thanks for reaching out, when you export an API from APIM- that is the no longer the original API definition that you exported. The exported definition represents APIM as the backend service which other systems can call. So this is by design.

    This is the reason its unsupported to re-import an exported API Definition and expect it to work like the originally imported API.

    255855-image.png

    Reference: https://learn.microsoft.com/en-us/azure/api-management/api-management-api-import-restrictions#openapi-import-update-and-export-mechanisms

    let me know incase of further queries, I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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