APIM-CLI version
1.14.8
API-Management version
7.7.0.20240830
Bug description
Hello!
Please could you help us with an issue that we're facing when trying to update a frontend API?
We're receiving the following error when deploying/updating a frontend api with apim cli import command:
[APIImportApp] ERROR: Can't grant access to API. | Can't grant access to API using URI: https://my-host:8075/api/portal/v1.4/applications/4e182504-db00-49a6-882b-c2a93a2f9ffd/apis Received Status-Code: 409 Response: {"errors":[{"code":102,"message":"resource already exists"}]}
This frontend api has a lot of applications (more than 200) that have permission to use it. Some of these applications have the exact same name but are linked with different organizations.
Please, is there a way to set up APIM CLI to ignore this 409 errors instead of interrupting the import process?
Thanks in advance! Let me know if you need more details.
Steps to reproduce
In our scenario, we have some applications with exact same name but linked with different organizations.
Therefore, to reproduce this behavior it'll be something like this:
- Create and publish a frontend api on API Manager
- Create 3 organizations and grant access to the frontend api created on step 1 for each of them
- Create 3 applications with the same name (they must have the same name), one for each organization created on step 2, granting access for the frontend api created on step 1
- Use apim cli to get the frontend api spec created on step 1 from API Manager to your workstation
- Change something in the api and try to deploy back to API Manager using apim cli import
- The same error should appear to you
Relevant log output
[APIImportApp] ERROR: Can't grant access to API. | Can't grant access to API using URI: https://my-host:8075/api/portal/v1.4/applications/4e182504-db00-49a6-882b-c2a93a2f9ffd/apis Received Status-Code: 409 Response: {"errors":[{"code":102,"message":"resource already exists"}]}
APIM-CLI version
1.14.8
API-Management version
7.7.0.20240830
Bug description
Hello!
Please could you help us with an issue that we're facing when trying to update a frontend API?
We're receiving the following error when deploying/updating a frontend api with apim cli
importcommand:This frontend api has a lot of applications (more than 200) that have permission to use it. Some of these applications have the exact same name but are linked with different organizations.
Please, is there a way to set up APIM CLI to ignore this 409 errors instead of interrupting the import process?
Thanks in advance! Let me know if you need more details.
Steps to reproduce
In our scenario, we have some applications with exact same name but linked with different organizations.
Therefore, to reproduce this behavior it'll be something like this:
Relevant log output