检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
mirrorBackToSource HTTP/1.1 Host: bucketname.obs.region.myhuaweicloud.com Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo= Date: Tue, 21 Jul 2020 22:28:46 GMT Sample Response HTTP/1.1 200 OK Server: OBS Date: Tue, 07 Jul 2020 07:28:46 GMT Content-Type: application
Option Description Value on the OBS Server Expedited restore Data can be restored within 1 to 5 minutes. ObsClient::RestoreTierExpedited Standard restore Data can be restored within 3 to 5 hours. This is the default option.
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 48 from obs import ObsClient import os import traceback # Obtain an AK and SK pair using environment variables or
External Bucket Adding After external buckets are added through OBS Browser+, you can access them locally. This section describes external buckets and how to configure them. Overview Adding an External Bucket Parent topic: Advanced Bucket Settings
To use OBS Android SDK to send a request to OBS, you need to initialize an instance of ObsClient and modify the default configurations in ObsConfiguration based on actual needs.
Quick Start Before You Start Setting Up an OBS Environment Preparing a Development Environment Installing the SDK Obtaining Endpoints Initializing an Instance of ObsClient Creating a Bucket Uploading an Object Downloading an Object Listing Objects Deleting an Object General Examples
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. You cannot use this API to delete a specified lifecycle rule.
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.
Restrictions To upload an object, you must be the bucket owner or have the required permission (obs:object:PutObject in IAM or PutObject in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
Tags are used to identify and classify OBS buckets. Parent topic: Tag Management
Tags are used to identify and classify OBS buckets. Parent topic: Tag Management
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
OBS supports server-side encryption. For more information, see Server-Side Encryption. Parent topic: Server-Side Encryption (SDK for Node.js)
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
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.
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