检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Process You can call OBS REST APIs to access image processing. In the REST architectural style, resources on a network are identified by Uniform Resource Identifiers (URIs) and applications on clients locate resources using Uniform Resource Locators (URLs).
OBS itself does not support this mechanism. If you want to prevent an object from being concurrently accessed, you must add a lock mechanism for objects in upper-layer applications.
Restrictions To obtain an object ACL, you must be the bucket owner or have the required permission (obs:object:GetObjectAcl in IAM or GetObjectAcl in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
Log Analysis (SDK for Node.js) Log Configuration OBS Node.js SDK provides the logging function based on Log4js. You can call ObsClient.initLog to enable and configure logging. The sample code is as follows: obsClient.initLog({ name: 'test', // Log name file_full_path:'.
You can obtain the static website hosting address of the bucket on OBS Console. You can also get the address according to the following rule and format.
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.
Cropping Images Common Cropping You can edit code on OBS Console or make an API call to crop images. You can start at any point on an image and crop the image into a rectangle with specified width and height. Table 1 describes the parameters.
(Java SDK) SDK uses the maxErrorRetry parameter configured in Creating and Configuring an OBS Client (SDK for Java) to retry. The default value for retry times is 3. 0 to 5 is recommended.
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.
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.
If there is no such a default master key, OBS will create one and use it by default.
Restrictions To set an object ACL, you must be the bucket owner or have the required permission (obs:object:PutObjectAcl in IAM or PutObjectAcl in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
Public Parameters You can use the GUI or code mode on OBS Console or make an API call to configure public parameters for watermarking. You can add a text or image watermark to the original image.
Restrictions To create a PFS, you must have the obs:bucket:CreateBucket 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.
This example uploads string Hello OBS to bucket examplebucket as object example/objectname.
SSE-C Functions With SSE-C used, OBS uses the keys and MD5 values provided by customers for server-side encryption. Newly Added Headers OBS does not store your encryption keys. If you lost them, you lost the objects. Six headers are added to support SSE-C.
If the value is invalid, OBS ignores this parameter. In such case, the Location header is the object address, and OBS returns a status code based on whether the operation succeeds or fails.
It is used for the OBS server to verify data integrity.
Interlaced Image Loading You can edit code on OBS Console or make an API call to load images in an interlaced way. With format conversion, images are generated in baseline JPEG format by default. If you want to generate an image in progressive JPEG, use the interlace parameter.
It is used for the OBS server to verify data integrity.