Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create or update during import of products #36

Closed
peruzzof opened this issue Jul 14, 2022 · 3 comments
Closed

Create or update during import of products #36

peruzzof opened this issue Jul 14, 2022 · 3 comments

Comments

@peruzzof
Copy link

Currently when we try to import an existing product it will just fail with an alert, saying that it already exist.
I belive that the usual approach is to update it when it already exists, so I would love to see the option to update existing products.

With this feature I will be able to create a workflow (git based) to update the products in an automated way. To achieve the same with the current approac (apigeecli products updat) can be harder using other CLI tools (bash, powershell...)

@srinandan
Copy link
Collaborator

Is the flow you are describing have a file with one or more API Products and you wish to import (create or update as needed) them?

@peruzzof
Copy link
Author

Yes, I would like to create a file with one or more API products (similar to the one generates with the "product export" command), when I run the import command I wish that everything will be created or updated, as needed)

@srinandan
Copy link
Collaborator

Unfortunately the API does not support upsert. This will double the number of API calls to the control plane. For large data sets, it can affect the quota.

That said, I can see the usefulness of this feature for smaller datasets.

srinandan added a commit that referenced this issue Jul 23, 2022
srinandan added a commit that referenced this issue Jul 24, 2022
srinandan added a commit that referenced this issue Jul 24, 2022
srinandan added a commit that referenced this issue Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants