Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.36k stars 4.75k forks source link

How can we Enable/Disable APIs and Operations in Azure API Management Using .NET SDK and or in Portal #44554

Closed fogwildflower closed 2 months ago

fogwildflower commented 3 months ago

Library name and version

Azure.ResourceManager.ApiManagement 1.1.0

Query/Question

I'm currently working on a project that involves managing APIs within Azure API Management programmatically using the .NET SDK. However, I couldn't find explicit documentation or examples on how to enable or disable APIs and their operations or individual operations specifically.

Could you please provide guidance or code snippets on how to achieve this functionality using the .NET SDK for Azure API Management? It would be immensely helpful to have clear instructions or references to ensure seamless integration with our existing .NET applications.

Environment

No response

github-actions[bot] commented 3 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

welovej commented 2 months ago

Hi @fogwildflower , this similar question has been asked at this link. It does make sense, since the Azure web portal does not provide a clear feature or status indicator for enabling or disabling.

github-actions[bot] commented 2 months ago

Hi @fogwildflower. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

fogwildflower commented 2 months ago

/unresolve

Hi @fogwildflower , this similar question has been asked at this link. It does make sense, since the Azure web portal does not provide a clear feature or status indicator for enabling or disabling.

Azure API Management does not offer a feature to enable or disable APIs or their operations. The only available actions are adding, updating, or deleting APIs and operations.

As backing up and restoring the entire API Management instance is not a feasible solution for me, I don't want to take down the whole instance. I need a way to disable specific APIs dedicated to certain clients. When a client's subscription expires, I need to disable their APIs, and when they rejoin, I need to re-enable them.

Is there any plan to introduce this feature in the future?

welovej commented 2 months ago

@fogwildflower Sorry for the inconvenience caused. Since we are the SDK team, if you want the new feature, it's better to open an Azure ticket to get support from the service team. Then it will be feasible to introduce this feature into the SDK.