Buckets
One of the most fundamental concepts in Arvancloud Object Storage is the bucket. Buckets are spaces where objects are placed, and you use them to manage your files. Alongside the Object Storage API, the panel offers various features for creating and managing buckets and files.
Creating a Bucket
To create a bucket, go to Buckets in the Arvancloud panel and click Create Bucket.
Bucket Name
On the page that opens, enter the name you want for the bucket in the Name field. When choosing a bucket name, follow these rules:
- Use lowercase English letters and numbers.
- Special characters such as dots and question marks can't be used.
- Choose a name longer than three characters.
- The bucket name must be unique across all of Arvancloud Object Storage. If you choose a duplicate name, you'll get the error "A bucket with this name already exists."
Bucket Region
Because Arvancloud Object Storage is multi-region, you can create your buckets in the region you want. Currently, you can choose either the Simin or Shahriar data center as the region for creating a bucket.
Also, by creating a bucket in the Simin region, you can use the multi-zone feature. When you enable it, the bucket's data is automatically stored in several data centers, and if one data center (zone) has a disruption, users won't notice it.
Note that after the multi-zone feature is enabled on a bucket, it can't be disabled.
You can also enable multi-zone after creating the bucket, in the Actions section.
Public Read Access and Private Read Access
In the next step, you need to specify the type of access to the files uploaded to the bucket. Public and private access is one of the security features of Arvancloud Object Storage. With it, you can specify which files users can see or change with authentication and which only through a link. This access can be applied at both the file and the bucket level.
Private access keeps files secure, while public access on a file means the bucket's files can be viewed and changed without any authentication. For buckets that will hold important and sensitive files, we recommend enabling private access at the bucket level so it applies to all files in it.
When creating a bucket, access is private by default. To enable public access, after setting the bucket's name and region, simply enable Public read access for all files.
Note that after setting access in this section, you can change the access type from public to private, and vice versa, for files or the whole bucket.
Tags
Tags are one of the useful features of Arvancloud Object Storage. By defining a tag, you can manage and categorize your bucket more effectively. When creating a bucket, you can add one or more tags to it by entering a key and a value.
Finally, click Create. The bucket is created and is accessible from Buckets.
Managing Buckets
The Buckets section of the Arvancloud panel lets you make various changes to manage your buckets. In this section, you can change buckets' public and private access, review or delete existing buckets, or manage the different files inside a bucket.
Changing Access
To change a bucket's access, simply change the Public Read toggle next to the bucket's name in Buckets. Enabling this option enables public access, and disabling it enables private access. Note that this change only applies to the bucket, and the status of the files in the bucket doesn't change.
Managing Tags
To define a tag, select the actions option next to the bucket you want. Then click Manage Tags to open the tag definition page. In this section, you can define a key and value for your tags.
After defining each tag, you can click Define New Tag to add a new tag. Finally, after defining all tags, click Apply Tags to apply the defined tags to the bucket.
You can also edit or delete tags in the same section.
Static Website
With the static website feature of Arvancloud Object Storage, you can use this product to host a static website. A static website, unlike dynamic websites that rely on server-side processing and ASP.NET and PHP scripts, consists of web pages with static content.
Depending on your region, the website endpoint can be used as follows.
http://bucket-name.s3-website.region.arvanstorage.ir
To learn how to set up a static website in Arvancloud Object Storage, see the guide to this feature.
Deleting a Bucket
To delete a bucket, you first need to delete all objects in it. Then click Delete next to the bucket's name in Buckets, and finally select Yes. After you confirm, the bucket is deleted.
Note that to delete a bucket, you must first delete all objects in it; a bucket can't be deleted while it contains files.
Managing Files
In Buckets, by clicking any bucket, you can upload the objects you want to it and manage them. This section explains how to manage objects in buckets.
Uploading a File
To upload a file to a bucket, simply open the bucket and select Upload on the page that opens.
On the page that opens, upload the file using one of the two available methods.
Method 1: Uploading a File Directly
With this method, you can upload a file or folder that exists locally on your system. To do this, click Select File/Folder and choose the file or folder you want, or drag and drop it in the specified area.
Method 2: Uploading from a Link
If the file you want to upload to your bucket is on the internet, you can upload it by entering its URL in Upload from Link and then clicking Confirm.
After choosing one of the two methods, a new page opens where you can enter the file name. Finally, after choosing the file's access type and clicking Upload, the file is uploaded.
Changing File Access
Using the Public Read toggle next to each file's name, you can make it readable with or without authentication. This change can be applied at any time.
Managing Tags
Tags are one of the useful features of Arvancloud Object Storage. By defining a tag, you can manage and categorize your files more effectively.
To define a tag, select the actions option next to the file you want. Then click Manage Tags to open the tag definition page. In this section, you can define a key and value for your tags.
After defining each tag, you can click Define New Tag to add a new tag. Finally, after defining all tags, click Apply Tags to apply the defined tags to the file.
Quick Share
If for any reason you need a direct link to objects uploaded to Arvancloud Object Storage, you can click Quick Share in the actions section.
Depending on the file's public or private access, this link makes it available to users.
Download
With the Download option, you can download your file at any time and have it locally.
Deleting a File
To delete an uploaded file, select Delete from the actions options next to it. You can also select several files or all of them to delete them in bulk.
Once you confirm deleting a file, you'll no longer have access to it.