info
Overview
ioncli
is a simple Command Line Interface tool that allows data to be uploaded, downloaded and deleted from Ionburst Cloud S6. ioncli
also allows the listing of available classifications.
The aim of this tutorial is to learn how to setup ioncli
, and use it to perform basic operations against the Ionburst Cloud S6 API.
Shared Responsibility Model Breakdown
Customer Responsibility
- You, the customer, are responsible for the secure management of the Ionburst Cloud credentials used by the
ioncli
tool. ioncli
does not provide any client-side encryption functionality. If this is used in conjunction with the usage ofioncli
, it is the reponsibility of the customer to manage.ioncli
does not provide any metadata tracking or management for data stored. It is the customer's responsibility to track and record this information.
Ionburst Cloud Responsibility
- We are responsible for the security of all data stored in Ionburst Cloud S6 using the
ioncli
tool. - We are responsible for the underlying security and availability of the Ionburst Cloud services.
Getting Started
In this tutorial we will cover:
- Retrieving the available Ionburst Cloud classifications.
- Uploading a file to Ionburst Cloud S6.
- Downloading a file from Ionburst Cloud S6.
- Deleting a file from Ionburst Cloud S6.
Basic Usage
ioncli
provides functionality for the following:
- Classifications listing.
- PUT - Uploading data to Ionburst Cloud S6.
- GET - Downloading data from Ionburst Cloud S6.
- DELETE - Deleting data from Ionburst Cloud S6.
1. Classifications
Data can be secured by Ionburst Cloud S6 according to available security classifications. ioncli
can be used to view the policies currently available to an Ionburst Cloud party.
To list available policies, the following can be used:
The output for this command should look like:
2. Uploading Data
To upload data to Ionburst Cloud S6 using ioncli
, an object ID and file must be supplied. In this example we will upload the file my-file.txt
as ID my-ioncli-put
.
Creating my-file.txt
:
Uploading my-file.txt
with ioncli
:
This operation does not return any output on success.
3. Downloading Data
To retrieve data from Ionburst Cloud S6 using ioncli
, an object ID and output path must be provided. In this example, we will download the previously uploaded object, my-ioncli-put
, to the path/file my-downloaded-file.txt
.
Downloading my-ioncli-put
:
This operation does not return any output on success.
We can now view the downloaded file:
The output for this command should look like:
4. Deleting Data
To delete data from Ionburst Cloud S6 using ioncli
, an object ID must be provided. In this example, we will download the previously used object, my-ioncli-put
.
Deleting my-ioncli-put
:
This operation does not return any output on success.
We can verify the object has been deleted by attempting to download my-ioncli-put
:
The output for this command should look like:
Conclusion
You should now be able to perform basic data operations on Ionburst Cloud S6 using the ioncli
tool.
If you're interested in learning more about our more fully-featured command-line tool, IonFS, which features object metadata management and filesystem-like interactions, please see the Ionburst Cloud docs.