检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
The log configuration file example (log.conf) is included in the OBS Python SDK development package. Modify parameters in log.conf as needed. The log module of the OBS Python SDK is thread secure but not process secure.
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.
Log Analysis Log Configuration OBS BrowserJS SDK provides the logging function. You can call ObsClient.initLog to enable and configure logging.
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.
Rotation Settings You can edit code on OBS Console or make an API call to rotate images clockwise. Table 1 describes the parameters. This operation is represented by rotate.
Ensure that you are familiar with OBS basic concepts, such as buckets, objects, and access keys (AK and SK). You can see General Ways to Use ObsClient (SDK for Node.js) to learn how to call OBS Node.js SDK APIs in a general manner.
The procedure is as follows: Find file log4j2.xml from the OBS Java SDK package. Modify log levels and save paths in the log4j2.xml file based on actual needs.
Ignoring Errors and Returning Original Images You can edit code on OBS Console or make an API call. The following operation will ignore errors such as invalid request parameters and excessive image processing, and directly return the original images.
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.
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.
To get started with image processing on OBS Console, see Using Image Processing on OBS Console. Using the REST API You can call OBS Representational State Transfer (REST) APIs to access image processing.
/obsutil ls obs://bucket-test/test/ -du -limit=0 command to query the size of the test folder in bucket bucket-test. ./obsutil ls obs://bucket-test/test/ -du -limit=0 Start at 2023-03-16 06:40:18.2773873 +0000 UTC Listing objects .
Log Analysis (SDK for C) Log Path The OBS C SDK log path is specified by the LogPath field in OBS.ini. By default, logs are stored in the logs directory at the same level as the lib directory of the C SDK dynamic library.
style on OBS Console and then apply it to the image.
Using OBS Console to Customize an ACL You can customize ACLs on OBS Console. Bucket ACLAddUser Access The Read and Write permissions for Access to Bucket correspond to READ and WRITE, respectively.
Inscribed Circles You can edit code on OBS Console or make an API call to get an inscribed circle of an image. Choose the image center as the center of a circle, and crop the image according to the specified radius. The image then is cropped into a circle.
The minimum part size supported by an OBS 3.0 bucket is 100 KB, and the minimum part size supported by an OBS 2.0 bucket is 5 MB. You are advised to perform multipart upload to OBS 3.0 buckets.
Using OBS Browser+ Files are uploaded using multipart upload on OBS Browser+. With multipart upload, you can upload a single file with the maximum size of 48.8 TB. OBS Browser allows up to 500 files to be uploaded at a time.
Constraints Operations An existing OBS bucket cannot be changed to a parallel file system. For details about how to create a parallel file system, see Creating a Parallel File System. Custom domain names of parallel file systems cannot be configured on OBS Console.