检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Bucket versions Bucket inventories can be generated only for OBS 3.0 buckets, but they can be stored in either OBS 3.0 or OBS 2.0. Number of bucket inventory rules A bucket can have a maximum of 10 inventory rules.
It is provided for the OBS server to verify data integrity. The OBS server will compare this MD5 value with the MD5 value calculated based on the object data. If the two values are not the same, HTTP status code 400 is returned.
Run the obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp/ command to synchronously copy objects. obsutil sync obs://bucket-test/temp/ obs://bucket-test2/temp Start at 2024-09-25 04:48:10.1147483 +0000 UTC Parallel: 5 Jobs: 5 Threshold
An object will be automatically deleted by the OBS server once it expires.
An object will be automatically deleted by the OBS server once it expires.
This example uploads string Hello OBS to bucket bucketname as object objectname.
An object will be automatically deleted by the OBS server once it expires.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
An object will be automatically deleted by the OBS server once it expires.
website HTTP/1.1 User-Agent: curl/7.29.0 Host: bucketname.obs.region.myhuaweicloud.com Accept: */* Date: WED, 01 Jul 2015 03:44:37 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:AZ1b0N5eLknxNOe/c0BISV1bEqc= Sample Response 1 2 3 4 5 HTTP/1.1 204 No Content Server: OBS x-obs-request-id
cors HTTP/1.1 User-Agent: curl/7.29.0 Host: examplebucket.obs.region.myhuaweicloud.com Accept: */* Date: WED, 01 Jul 2015 03:56:41 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:mKUs/uIPb8BP0ZhvMd4wEy+EbiI= Sample Response 1 2 3 4 5 HTTP/1.1 204 No Content Server: OBS x-obs-request-id
If there is no such a default master key, OBS will create one and use it by default.
If there is no such a default master key, OBS will create one and use it by default.
Quick Start Setting Up an OBS Environment Preparing a Development Environment Installing SDK Obtaining Endpoints Configuring CORS Initializing an Instance of ObsClient Uploading an Object Downloading an Object Listing Objects Deleting an Object General Examples of ObsClient Pre-defined
Other APIs (SDK for C) Server-Side Encryption (SDK for C) Using a Temporary URL for Authorized Access (SDK for C) Using a User-Defined Domain Name to Access OBS (SDK for C)
Sample code is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 from obs import ObsClient import os import traceback # Obtain an AK and SK pair using environment variables or
Option Description Value on the OBS Server Expedited restore Data can be restored within 1 to 5 minutes. ObsClient::RestoreTierExpedited Standard restore Data can be restored within 3 to 5 hours. This is the default option.