检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
To use the OBS BrowserJS SDK to access a bucket, you must configure cross-origin resource sharing (CORS) for the bucket. The following configuration is recommended for the CORS rule. Parameter Value Description Allowed Origin * Allows all request origins.
You can set the following initialization parameters to configure an instance of ObsClient: Parameter Description Recommended Value access_key_id AK N/A secret_access_key SK N/A server Endpoint for accessing OBS, which contains the protocol type, domain name (or IP address), and port
The following table lists APIs related to server-side encryption: Method in OBS Android SDK Description Supported Encryption Type ObsClient.putObject Sets the encryption algorithm and key during object upload to enable server-side encryption.
The following table lists APIs related to server-side encryption: OBS .NET SDK API Function Description Supported Encryption Type ObsClient.PutObject Sets the encryption algorithm and key during object upload to enable server-side encryption.
When the OBS SDK is introduced to a Spring Boot framework, the version of OkHttp3 (dependency specified by the SDK) will be changed from 4.8.0 to 3.14.9. As a result, the specified method cannot be obtained.
OBS Java SDK provides abundant APIs for object download in the following methods: Streaming Download Partial Download Resumable download Request Parameters Parameter Type Mandatory (Yes/No) Description isEncodeHeaders boolean No Whether to automatically encode the request header.
OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object or delete expired objects, to effectively use storage features and optimize the storage space. You can set multiple lifecycle rules based on the prefix.
AppendObjectRequest request = new AppendObjectRequest(); request.setBucketName("bucketname"); request.setObjectKey("objectname"); request.setPosition(0L); request.setInput(new ByteArrayInputStream("Hello OBS".getBytes())); AppendObjectResult result = obsClient.appendObject(request
// 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.
directcoldaccess HTTP/1.1 User-Agent: curl/7.29.0 Host: examplebucket.obs.region.myhuaweicloud.com Date: Fri, 26 Apr 2019 07:37:36 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo= Content-SHA256: ogX9qClMrVJUBiUSIKDFM0qO41jJM0I5SCN55/OtMyI= Content-Length:
to a local PC obsutil archive [file_or_folder_url] [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx] Archiving to a specified bucket obsutil archive obs://bucket[/key] [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx] Examples Take the Windows OS as an example.
Run the obsutil help mb command to view the help information about the command for creating a bucket. obsutil help mb Summary: create a bucket with the specified parameters Syntax: obsutil mb obs://bucket [-acl=xxx] [-location=xxx] [-fs] [-az=xxx] [-sc=xxx] [-config=xxx] [-i
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.
OBS supports five types of bucket or object ACLs. For details, see the following table: Permission Description Enumeration Value in OBS iOS SDK READ A grantee with this permission for a bucket can obtain the list of objects in and metadata of the bucket.
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
OBS will return ETags (MD5 values) of the received parts to users.