检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
HTTP Status Codes (SDK for Python) The OBS server complies with the HTTP standard. After an API is called, the OBS server returns a standard HTTP status code. The following tables list the categories of HTTP status codes and the common HTTP status codes in OBS.
Exceptions are usually OBS server-side errors, including OBS error codes and error information and aim to help users locate problems and troubleshot faults.
Example Programs OBS Android SDK provides abundant example programs for user reference and direct use. These programs can be obtained from the OBS Android SDK development package.
Example Programs (SDK for Node.js) OBS Node.js SDK provides abundant example programs for user reference and direct use. These programs can be obtained from the OBS Node.js SDK development package.
OBS can host your static website.
(SDK for Python) OBS employs access keys (AK and SK) for signature verification to ensure that only authorized accounts can access specified OBS resources. Detailed explanations of access keys are as follows: AK is short for Access Key ID.
Downloading and Installing the SDK (SDK for C) This section provides the download and compilation methods for the OBS SDK for C. SDK Download Latest version of OBS C SDK source code: Click here to download.
Object API Overview (SDK for Go) OBS SDK for Go provides methods for accessing OBS using object-related APIs (except for resumable transfer APIs) with signed URLs.
Creating a Bucket (SDK for Go) Function This API creates an OBS bucket. Buckets are containers for storing objects (files uploaded to OBS) in OBS.
Creating a Bucket (SDK for Python) Function This API creates an OBS bucket. Buckets are containers for storing objects (files uploaded to OBS) in OBS.
A pull traffic package can be used for data that CDN downloads from OBS buckets when those OBS buckets are used as origin sites for CDN. An outbound internet traffic package can be used for traffic for data transferred from OBS to local devices over the internet.
Exceptions are usually OBS server errors, including OBS error codes and error information. This facilitates users to locate problems and troubleshot faults.
OBS can log bucket access requests for further request analysis or log audit. Logs occupy the OBS storage that incurs costs, so OBS does not collect bucket access logs by default. OBS creates log files and uploads them to a specified bucket.
Preparations (SDK for Python) Before using OBS SDK for Python to access Huawei Cloud OBS, you need to prepare the service and development environments. To prepare the service environment, you must get a HUAWEI ID and an access key.
Parallel File System Parallel File System (PFS), a sub-product of OBS, is a high-performance file system. It aims to provide solutions for big data scenarios where OBS is used as the unified data lake storage. For details about PFS, see the Parallel File System Feature Guide.
Uploading an Image You can upload images using OBS Console, OBS Browser+, or REST APIs. For details, see Uploading an Object. Skip this section if the image to be processed already exists in your bucket.
Example Programs OBS PHP SDK provides abundant example programs for your reference and use. These programs can be obtained from the OBS PHP SDK. You can also click the links below to download corresponding example programs.
Using Signature Generators OBS provides graphical tools to make it easier to generate signatures.
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.