检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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 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.
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.
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.
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
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.
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.
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.
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.
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.
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.
OBS will return ETags (MD5 values) of the received parts to users.
Restrictions To download an object, you must be the bucket owner or have the required permission (obs:object:GetObject in IAM or GetObject in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
OBS access control can be implemented using IAM permissions, bucket policies, and ACLs (including bucket and object ACLs). For more information, see Introduction to OBS Access Control.
Exclude not selected: The bucket policy applies to the specified OBS resources. Exclude selected: The bucket policy applies to OBS resources except the specified ones.