List files in a container in an Cloud Object Storage.

Parameters:

Parameters:
See dedicated page for more information.
This action also works when accessing the web through a PROXY server
To use this action, you’ll need to get several parameters from the OVH Website (i.e. you need the parameters P3, P4, P5 and P6).
The OVH Cloud object storage has some very special particularities when it comes to manipulating large files. What’s a “large” file? That’s a file that is larger than the parameter P3 (“Segment Size”) from the “ostUpload” action:

What’s happening when you upload a file that is larger than the segment size? (i.e. when you upload a file that is larger than 50MB, in the example above). For example, let’s see what’s happening if we upload a 120MB file that is named “big.txt”. The following happens:

From now on, if you attempt to download back from the OVH cloud the file named “big.txt”, ETL will transparently download a 120MB file (that is the concatenation of all the segment-files listed inside the “Manifest File” named “big.txt”).
If you use the OST Cloud List File action to list the files inside your OVH Cloud storage, you might see these 4 files:

For many use-cases, we actually don’t want to see the individual file-segments that are composing the “large” files (e.g. we don’t want to see “big.txt|1”, “big.txt|2” and “big.txt|3”). So, when listing the files inside the OVH Cloud storage, there are 2 solutions to “hide” the individual file-segments:
• Solution 1 (the simplest solution)
You can uncheck the parameter P2 of the OST Cloud List File action. This will remove from the display all the files with a filename that ends with the character “|” followed by a number, so that we finally see:

This solution has one small disadvantage: i.e. it’s not always 100% accurate. For example, this solution will remove from the output filename table a file that is named “myfile.txt|9” despite the fact that this file is a perfectly valid file (i.e. it’s not a segment-file). The removal occurs just because this filename unfortunately ends with the character “|” followed by a number (i.e. it just has the same “look” as a segment-file).
• Solution 2 (the more complex solution)
This second solution involves using two different OVH Cloud object containers. The first container contains all the files, with the exception of the segment files. The second container only contains the segment files. For this solution to work, you need the following:


This solution is better because it’s always 100% accurate: i.e. there is no risk of “hiding” a valid, non-segment file: You just display ALL the files inside the first container and you are good!
All the ETL OVH Cloud Storage actions are built to handle flawlessly both the first and the second solution described here above. In particular, if you are using the second solution, this means that:
One final note about the parameter P3 (“Chunk Size”) from the ostDownload action:

This parameter P3 (“Chunk Size”) from the ostDownload action is useful when your internet connection is unstable. ETL always downloads your files chunk-by-chunk. If the internet connection is lost during the download of one chunk, ETL will “throw away” the incomplete/corrupted chunk and attempt to re-download again the same chunk (the number of “retries” is defined in parameter P10). A small “chunk size” means that, when the internet connection is lost, we don’t have to “throw away” a large quantity of bytes. This means that, when your internet connection is bad, you should decrease the value of the “chunk size”.
What’s happening if we want to download the 120 MB file named “big.txt” from the OVH Cloud storage and the parameter P3 (“Chunk Size”) is 20 MB? At first sight, we expect ETL to run 6 downloads to download “big.txt” (since the file-size is 120MB and the chunk-size is 20 MB, we should have 120/20=6 downloads) but ETL actually runs 7 downloads:

We have 7 downloads (instead of the expected 6) because the downloads #3 and #6 are only 10 MB (instead of 20 MB) because we used a 50MB segment-size during the “upload”. So, to avoid un-necessary extra downloads, it’s better to use a segment-size that is a multiple of the chunk-size.
Before using the OST Cloud Object storage actions inside ETL, you need to get the 4 parameters:

2.1 Create an OVH project












If you opted for the “Solution 2 (the more complex solution)”, you’ll need to create a second container whose name ends with “_segments”. We did exactly that (i.e. we created a second container) in the screenshot below. Click now on your (first) container:


You now have the 4 required parameters to connect to your OVH Cloud Object Storage.

Please make sure that you selected a user that can access the Object Storage (i.e. the “roles” of this user must contain “ObjectStore Operator”). Alternatively, create a brand-new user with the correct “roles”, following the procedure given in the point 2.2. here above.

3.2. Get the Container URL:


You now have the 4 required parameters to connect to your OVH Cloud Object Storage.
