检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Tags are used to identify and classify OBS buckets. Parent topic: Tag Management
OBS supports server-side encryption. For more information, see Server-Side Encryption. Parent topic: Server-Side Encryption (SDK for Node.js)
This example uploads string Hello OBS to bucket bucketname as object objectname.
To handle the error codes possibly returned during the operation, see OBS Server-Side Error Codes. Parent topic: Object Download
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
Run the obsutil help mb command to view the usage and detailed functions of the mb command, illustrated as follows: Summary: create a bucket with the specified parameters Syntax: obsutil mb obs://bucket [-fs] [-az=xxx] [-acl=xxx] [-sc=xxx] [-location=xxx] [-config=xxx] Options
Try with another agency. 400 Bad Request SYS.0029 Invalid OBS region domain name. Try with another OBS region domain name. 400 Bad Request SYS.0030 OBS region domain name is not matched.
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('.
It is not stored in OBS, does not occupy storage space, and does not incur storage charges.
OBS supports server-side encryption. For more information, see Server-Side Encryption. Parent topic: Server-Side Encryption
OBS supports server-side encryption. For more information, see Server-Side Encryption. Parent topic: Server-Side Encryption
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
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
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.
"github.com/huaweicloud/huaweicloud-sdk-go-obs/obs" ) //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
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.