I trying to understand the difference between those 2 methods, and when we suppose to use each one.
Per this example:
We are using import_bundle_from_archive when choosing export option of download_exported_bundle_archive_to_file
when we need to use it?
Hi @arielma2304 ,
The difference between the two is that in
import_bundle_from_archive - you pass an archive path as a parameter and then the server will read it's content.
import_bundle_from_stream - you provide the actual bundle content as a parameter, the server doesn't read it from the path.
It's the path used when the bundle was exported from design node.
There are some examples here
I'm not sure I understand your last point about parameters being the same. Semantically they indeed represent the same thing - an exported bundle, but either you provide a path to the file or this file's content.
If your design and automation nodes are deployed to the same machine you can use import_bundle_from_archive and just pass the file path.
If they're on different machines then you'd have to read the file and pass it using import_bundle_from_stream