检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
Restrictions To download an object version, 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.
To view a bucket version, see Checking OBS Version (OBS 2.0 or OBS 3.0). Folder uploads You can upload folders using OBS Console, OBS Browser+, or obsutil.
Using OBS SDKs OBS software development kits (SDKs) encapsulate the REST API provided by OBS to simplify development. You can call API functions provided by OBS SDKs to use OBS.
Once you have enabled OBS successfully, you can call REST APIs to process images simply by putting a URL that complies with the command rules of image processing in a browser.
Error cause: The loading on the OBS Browser+ bucket details page invokes some other OBS APIs. However, such operations are not allowed by the read and write permissions. Therefore, a message "Access denied.
A pre-signed URL is recommended for accessing OBS through a browser.
Restrictions To list PFSs, you must have the obs:bucket:ListAllMyBuckets permission. IAM is recommended for granting permissions. For details, see IAM Custom Policies. The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
The following table lists APIs related to server-side encryption: Method in OBS Node.js SDK Description Supported Encryption Type ObsClient.putObject Sets the encryption algorithm and key during object upload to enable server-side encryption.
Getting Started (SDK for Java) This section introduces how to use OBS SDK for Java to perform some basic actions, such as creating a bucket, and uploading, downloading, listing, and deleting objects.
Missing Modules (SDK for Node.js) Problem: When OBS Node.js SDK is used for secondary development, an error message was displayed indicating that a module was missing, for example, "Cannot find module 'xml2js'".
Before You Start Ensure that you are familiar with OBS basic concepts, such as buckets, objects, and access keys (AK and SK). You can see General Examples of OBSClient to understand how to call OBS iOS SDK APIs in a general manner. Parent topic: Quick Start
NOTE: The IAM user who uses obsfs to mount and access a parallel file system must have the same access permissions for OBS buckets. After an OBS role or policy is granted to an IAM user, the role or policy will apply to both OBS buckets and parallel file systems.
Log Analysis Log Configuration OBS PHP SDK provides the logging function based on the monolog log library. You can call ObsClient->initLog to enable and configure logging. Sample code is as follows: $obsClient -> initLog ([ 'FilePath' => '.
If there is not a default master key, OBS will create one and use it.
Slimming Images You can edit code on OBS Console or make an API call to slim images. Slimming is a simplified image compression, which generates images with an absolute quality of 75%. You do not need to configure any parameter. You can slim images just by running a command.
It is used for the OBS server to verify data integrity.
OBS replaces the value of KeyPrefixEquals with the value you specified here for ReplaceKeyPrefixWith.
Slimming Images You can edit code on OBS Console or make an API call to slim images. Slimming is a simplified image compression, which generates images with an absolute quality of 75%. You do not need to configure any parameter. You can slim images just by running a command.
Code string Explanation: Error code returned by the OBS server. Message string Explanation: Error description returned by the OBS server. HostId string Explanation: Request server ID returned by the OBS server. RequestId string Explanation: Request ID returned by the OBS server.