检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
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.
In OBS, objects are basic data units that users can perform operations on.
In OBS, objects are basic data units that users can perform operations on.
Adaptive Orientation You can use the GUI or code mode on OBS Console or make an API call to use adaptive orientation. Images shot by cameras or smartphones may contain EXIF Data, like an orientation parameter.
In OBS, objects are basic data units that users can perform operations on.
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.
Processing an Image by Editing Code This case describes how to resize an image by editing code on OBS Console. Procedure On the console homepage, click Service List in the upper left corner and choose Storage > Object Storage Service.
from obs import WebsiteConfiguration from obs import IndexDocument from obs import ErrorDocument from obs import RoutingRule from obs import Condition from obs import Redirect import os import traceback # Obtain an AK and SK pair using environment variables or import the AK and
Viewing Resource Package Details You can view usage details of your resource packages on OBS Console. Procedure In the navigation pane of OBS Console, choose Resource Packages. Select the region and type of your package to view its details.
To use OBS, you need a valid pair of AK and SK for signature authentication. For details, see Setting Up an OBS Environment.
Billing Mode Changes There are pay-per-use and yearly/monthly (resource package) billing modes available for OBS: If pay-per-use billing no longer meets your needs, you can purchase resource packages to use yearly/monthly billing.
Before You Start (SDK for C) This section describes the version compatibility and important notes about the C SDK of Object Storage Service (OBS). Compatibility 3.*.* is compatible with 3.0.0. 3.*.* is incompatible with 2.*.*. 3.*.* is incompatible with 1.*.*.
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.
Obtaining Access Keys (AK/SK) To access OBS using access keys as an IAM user, the programmatic access must be enabled. For details, see Viewing or Modifying IAM User Information. When you call APIs, you need to use the AK and SK for authentication.
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.
Each time you want to send an HTTP/HTTPS request to OBS, you must create an instance of ObsClient.
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.
When using the following tools to access OBS resources, you need to use the AK/SK pair for security authentication. Table 1 OBS resource management tools Tool AK/SK Configuration OBS Browser+ Configure the AK and SK during login account configuration.