forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Jawei, Li <lijiawei5@huawei.com> Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
18 lines
2.6 KiB
HTML
18 lines
2.6 KiB
HTML
<a name="obs_03_0206"></a><a name="obs_03_0206"></a>
|
|
|
|
<h1 class="topictitle1">Objects</h1>
|
|
<div id="body1499753333225"><p id="obs_03_0206__p65956029">Objects are basic units stored in OBS. It contains both data and the metadata that describes data properties. Data uploaded to OBS is stored in buckets as objects.</p>
|
|
<div class="p" id="obs_03_0206__p56733349">An object consists of data, metadata, and a key.<ul id="obs_03_0206__ul40838094"><li id="obs_03_0206__li31121093">A key specifies the name of an object. An object key is a UTF-8 string ranging from 1 to 1024 characters. Each object is uniquely identified by a key within a bucket.</li><li id="obs_03_0206__li11654386">Metadata: Metadata describes an object, and is classified into system metadata and custom metadata. The metadata is a set of key-value pairs that are assigned to the object stored in OBS.<ul id="obs_03_0206__ul37780617"><li id="obs_03_0206__li4481233">System metadata is automatically assigned by OBS for managing the object. System metadata includes Date, Content-Length, Last-Modified, ETag, and more.</li><li id="obs_03_0206__li40331100">You can specify custom metadata to describe the object when you upload the object to OBS.</li></ul>
|
|
</li><li id="obs_03_0206__li27435588">Data: refers to the content that the object contains.</li></ul>
|
|
</div>
|
|
<p id="obs_03_0206__p31998529">Generally, objects are managed as files. However, OBS is an object-based storage service and there is no concept of files and folders. For easy data management, OBS provides a method to simulate folders. By adding a slash (/) to an object name, for example, <strong id="obs_03_0206__b2144032818193446">test/123.jpg</strong>, you can specify <strong id="obs_03_0206__b918584493193446">test</strong> as a folder and <strong id="obs_03_0206__b270385717193446">123.jpg</strong> as the name of a file in the <strong id="obs_03_0206__b985571307193446">test</strong> folder. The key of the object is <strong id="obs_03_0206__b890725867193446">test/123.jpg</strong>.</p>
|
|
<p id="obs_03_0206__p55769339142039">When uploading an object, you can set a storage class for the object. If no storage class is specified, the object is stored in the same storage class as the bucket in which it resides. You can also change the storage class of an existing object in a bucket.</p>
|
|
<p id="obs_03_0206__p19551312">On OBS Console or OBS clients, you can use folders the same way as they are used in a file system.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0205.html">Basic Concepts</a></div>
|
|
</div>
|
|
</div>
|
|
|