检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Rounded Corner Cropping You can edit code on OBS Console or make an API call to round corners of an image. This operation allows you to cut off the corners of an image based on the specified radiuses. You can configure the radius of image corners to round in two ways.
If there is no such a default master key, OBS will create one and use it by default.
Do not change the source objects in the OBS bucket when downloading a single object or objects in batches. Otherwise, the download may fail or data may be inconsistent.
To use OBS, you need a valid pair of AK and SK for signature authentication. For details, see Setting Up an OBS Environment (SDK for Node.js). After obtaining the AK and SK, you can create an instance of ObsClient to call SDK APIs.
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
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.
Sample code: // Import the dependency package. import ( obs "github.com/huaweicloud/huaweicloud-sdk-go-obs/obs" ) func main() { // Set the path for saving log files. var logFullPath string = ".
The OBS C SDK allows you to use set_obs_log_path to specify a log path. This method has two parameters. The first parameter specifies a path and the second determines what to do under the path.
If the value is valid and the request is successful, OBS returns status code 303. Location contains SuccessActionRedirect as well as the bucket name, object name, and object ETag. If the value is invalid, OBS ignores this parameter.
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 offers the 40 GB storage package and 50 GB outbound Internet traffic package with special discounts. An account can have only one of each kind, and cannot purchase again until such packages are used up or expire.
Failed to Access OBS After Being Granted with the OBS Access Permission (403 AccessDenied)
If problems occur when using the OBS Java SDK, you can perform the following steps to analyze and locate the problems. Make sure that the latest version of OBS Java SDK of OBS Java SDK is used. Make sure that the logging function of OBS Java SDK is enabled.
OBS has multiple billing items. Even if you already have a resource package, there may be also other fees generated before the resource package is used up.
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.
A pre-signed URL is recommended for accessing OBS through a browser.