doc-exports/docs/obs/s3api/en-us_topic_0125560349.html
Jawei, Li 1a4c1a720a OBS s3api 2.0.38.SP5
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Jawei, Li <lijiawei5@huawei.com>
Co-committed-by: Jawei, Li <lijiawei5@huawei.com>
2022-11-16 14:51:13 +00:00

19 lines
2.5 KiB
HTML

<a name="EN-US_TOPIC_0125560349"></a><a name="EN-US_TOPIC_0125560349"></a>
<h1 class="topictitle1">Naming a Bucket and Object</h1>
<div id="body18475057"><p class="msonormal" id="EN-US_TOPIC_0125560349__p18389930">If a request contains a bucket name or an object key, OBS will only begin to process the request after checking that the bucket name or object key conforms to the specified naming rules.</p>
<div class="section" id="EN-US_TOPIC_0125560349__section31291646"><h4 class="sectiontitle">Bucket Names</h4><p class="msonormal" id="EN-US_TOPIC_0125560349__p20084682">A bucket name must conform to the following rules:</p>
<ul id="EN-US_TOPIC_0125560349__ul46544415"><li id="EN-US_TOPIC_0125560349__li16246551">Contains only lowercase letters, digits, hyphens (-), and periods (.)</li><li id="EN-US_TOPIC_0125560349__li12001237">Must start with a digit or a letter.</li><li id="EN-US_TOPIC_0125560349__li40902273">Contains 3 to 63 characters.</li><li id="EN-US_TOPIC_0125560349__li32576140">Cannot be an IP address.</li><li id="EN-US_TOPIC_0125560349__li24749807">Cannot end with a hyphen (-) or a period (.).</li><li id="EN-US_TOPIC_0125560349__li21421675">Cannot contain two consecutive periods (.)</li><li id="EN-US_TOPIC_0125560349__li58577354">A period (.) cannot precede or follow a hyphen (-), for example, <strong id="EN-US_TOPIC_0125560349__b57434139">my-.bucket</strong> and <strong id="EN-US_TOPIC_0125560349__b47145209">my.-bucket</strong>.</li></ul>
<div class="notice" id="EN-US_TOPIC_0125560349__note1035313256377"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0125560349__p102106147415">To avoid SSL certificate verification problems, it is recommended that no period (.) is contained in the bucket name when you are accessing the bucket through HTTPS. If the bucket name contains periods (.), it is recommended that you access the bucket through the path. For example: https://obs.example.com/bucketname</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0125560349__section13189358"><h4 class="sectiontitle">Object Names</h4><p class="msonormal" id="EN-US_TOPIC_0125560349__p60665573">An object is named after an object key, which is a sequence of characters whose UTF-8 encoding is at most 1024 bytes long. Each object in a bucket must have a unique object key.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0125560289.html">OBS REST APIs</a></div>
</div>
</div>