tutorial-cloud/docs/old-instance2.0/Create and manage object containers.md
2024-10-25 10:05:08 +05:30

82 lines
7.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_label: "Create and manage object containers"
sidebar_position: 1
---
<!-- truncate -->
import CodeBlock from '@site/src/components/CodeBloack';
import createcontainer from '@site/static/img/create-container.png';
import uploadfilecontainer from '@site/static/img/uploadfile-container.png';
import editfilecontainer from '@site/static/img/editfile-container.png';
import copyfilecontainer from '@site/static/img/copy-container.png';
# Create and manage object containers
<div className="text">OpenStack Object Storage (swift) is used for redundant, scalable data storage using clusters of standardized servers to store petabytes of accessible data. It is a long-term storage system for large amounts of static data which can be retrieved and updated.</div>
<div className="text">OpenStack Object Storage provides a distributed, API-accessible storage platform that can be integrated directly into an application or used to store any type of file, including VM images, backups, archives, or media files. In the OpenStack dashboard, you can only manage containers and objects.</div>
<div className="text">In OpenStack Object Storage, containers provide storage for objects in a manner similar to a Windows folder or Linux file directory, though they cannot be nested. An object in OpenStack consists of the file to be stored in the container and any accompanying metadata.</div>
<div className="head">Create a container</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers </span>category.</li><li>Click <span className="blue">Container</span>.</li><li>In the <span className="blue">Create Container</span> dialog box, enter a name for the container, and then click <span className="blue">Create</span>.</li></ol></div>
<div className="text">You have successfully created a container.</div>
<div className="note"><strong>Note</strong>: To delete a container, click the More button and select Delete Container.</div><br/>
<img src={createcontainer} alt="create Container" /><br/><br/>
<div className="head">Upload an object</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers</span> category.</li><li>Select the container in which you want to store your object.</li><li>Click the <span className="blue">Upload File</span> icon.<br/>The <span className="blue">Upload File To Container: &lt;name></span> dialog box appears. &lt;name> is the name of the container to which you are uploading the object.</li><li>Enter a name for the object.</li><li>Browse to and select the file that you want to upload.</li><li>Click <span className="blue">Upload File</span>.</li></ol></div>
<div className="text">You have successfully uploaded an object to the container.</div>
<div className="note"><strong>Note</strong>: To delete an object, click the More button and select Delete Object.</div><br/>
<img src={uploadfilecontainer} alt="Upload files to Container" /><br/><br/>
<div className="head">Manage an object</div>
<strong>To edit an object</strong>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers</span> category.</li><li>Select the container in which you want to store your object.</li><li>Click the menu button and choose <span className="blue">Edit</span> from the dropdown list.<br/>The <span className="blue">Edit Object</span> dialog box is displayed.</li><li>Browse to and select the file that you want to upload.</li><li>Click Update Object.</li></ol></div><br/>
<img src={editfilecontainer} alt="Edit files Container" /><br/><br/>
<div className="note"><strong>Note</strong>: To delete an object, click the menu button and select Delete Object.</div><br/>
<strong>To copy an object from one container to another</strong>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers</span> category.</li><li>Select the container in which you want to store your object.</li><li>Click the menu button and choose <span className="blue">Copy</span> from the dropdown list.</li><li>In the <span className="blue">Copy Object</span> launch dialog box, enter the following values:<ul><li><span className="blue">Destination Container</span>: Choose the destination container from the list.</li><li><span className="blue">Path</span>: Specify a path in which the new copy should be stored inside of the selected container.</li><li><span className="blue">Destination object name</span>: Enter a name for the object in the new container.</li></ul></li><li>Click <span className="blue">Copy Object</span>.</li></ol></div><br/>
<img src={copyfilecontainer} alt="Copy file Container" /><br/><br/>
<strong>To create a metadata-only object without a file</strong>
<div className="text">You can create a new object in container without a file available and can upload the file later when it is ready. This temporary object acts a place-holder for a new object, and enables the user to share object metadata and URL info in advance.</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers </span>category.</li><li>Select the container in which you want to store your object.</li><li>Click <span className="blue">Upload Object</span>.<br/>The <span className="blue">Upload Object To Container</span>: &lt;name> dialog box is displayed.<br/>&lt;name> is the name of the container to which you are uploading the object.</li><li>Enter a name for the object.</li><li>Click <span className="blue">Update Object</span>.</li></ol></div><br/>
<strong>To create a pseudo-folder</strong>
<div className="text">Pseudo-folders are similar to folders in your desktop operating system. They are virtual collections defined by a common prefix on the objects name.</div>
<div className="text"><ol><li>Log in to the dashboard.</li><li>Select the appropriate project from the drop down menu at the top left.</li><li>On the <span className="blue">Project</span> tab, open the <span className="blue">Object Store</span> tab and click <span className="blue">Containers</span> category.</li><li>Select the container in which you want to store your object.</li><li>Click <span className="blue">Create Pseudo-folder</span>. <br/>The <span className="blue">Create Pseudo-Folder in Container</span> &lt;name> dialog box is displayed. &lt;name> is the name of the container to which you are uploading the object.</li><li>Enter a name for the pseudo-folder. <br/>A slash (/) character is used as the delimiter for pseudo-folders in Object Storage.</li><li>Click <span className="blue">Create</span>.</li></ol></div>