检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
OBS supports server-side encryption. For more information, see Server-Side Encryption. Parent topic: Server-Side Encryption
Tags are used to identify and classify OBS buckets. For more information, see Tags. Parent topic: Tag Management
The number of objects and used storage capacity displayed on OBS Browser+ are for reference only. Parent topic: FAQs
/obsutil chattri obs://bucket[/key] -r [-f] [-v] [-meta=aaa:bbb#ccc:ddd] [-sc=xxx] [-acl=xxx] [-aclXml=xxx] [-o=xxx] [-j=1] [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx] Examples Take the Windows OS as an example, run the obsutil chattri obs://bucket-test/key -acl=public-read
It is not stored in OBS, does not occupy storage space, and does not incur storage charges.
Sample code: // Import the OBS library. // Use npm to install the client. const ObsClient = require("esdk-obs-nodejs"); // Use the source code to install the client. // var ObsClient = require('.
OBS returns the tags of the current object version by default. You can use the versionId parameter to retrieve tags of any other version. If the version you are retrieving tags from is a delete marker, OBS returns 404 Not Found.
Sample code is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 from obs import ObsClient import os import traceback # Obtain an AK and SK pair using environment variables or import
The code example for object upload is as follows: # -*- coding:utf-8 -*- # This example uploads a file with content-sha256 specified. from obs import ObsClient import os import traceback import hashlib # Obtain an AK and SK pair using environment variables or import the AK and SK
Troubleshooting (SDK for Node.js) OBS Server-Side Error Codes (SDK for Node.js) SDK Common Results (SDK for Node.js) Log Analysis (SDK for Node.js) Missing Modules (SDK for Node.js) Connection Timeout (SDK for Node.js) Unmatched Signatures (SDK for Node.js)
The owner or grantee ID required in the ACL indicates an account ID, which can be viewed on the My Credentials page of OBS Console.
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.
To handle the error codes possibly returned during the operation, see OBS Server-Side Error Codes. Parent topic: Bucket Management
To handle the error codes possibly returned during the operation, see OBS Server-Side Error Codes. Parent topic: Object Download
versionId=versionid' ]); printf ("RequestId:%s\n", $resp ['RequestId']); To handle the error codes possibly returned during the operation, see OBS Server-Side Error Codes. Parent topic: Versioning Management
Installing the SDK with the Source Code The following procedures use OBS Node.js SDK of the latest version as an example. Download the OBS Node.js SDK by referring to Downloading an SDK (SDK for Node.js).
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. When creating a bucket, you can specify its location.
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.
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.