Hello, I am trying to add a CORS policy to an API ...
# general
t
Hello, I am trying to add a CORS policy to an API behind APIM using azure-native (2.36.0). I don't want to have to use the apiId to get the API because I don't want to have to hardcode that value or put it in configuration. What would be ideal would be to pull it by name as that is a constant across all envs, but not seeing any way to do that. Also, if I could get a list of the APIs behind APIM that would work as well, but not seeing anything in the apimanagement docs. Seems like there are some older methods to do this but they are no longer available. Thanks in advance!