检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
To use OBS .NET SDK to send a request to OBS, you need to initialize an instance of ObsClient and modify the default configurations in ObsConfig based on needs.
location HTTP/1.1 User-Agent: curl/7.29.0 Host: examplebucket.obs.region.myhuaweicloud.com Accept: */* Date: WED, 01 Jul 2015 02:30:25 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:1DrmbCV+lhz3zV7uywlj7lrh0MY= Sample Response 1 2 3 4 5 6 7 8 9 10 HTTP/1.1 200 OK Server: OBS
policy HTTP/1.1 Host: examplebucket.obs.region.myhuaweicloud.com Date: WED, 01 Jul 2015 02:35:46 GMT Authorization: OBS H4IPJX0TQTHTHEBQQCEC:jZiAT8Vx4azWEvPRMWi0X5BpJMA= Sample Response 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 HTTP/1.1 200
OBS x-obs-request-id: BF260000016436BBA4930622B4FC9F17 x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSQIrNJ5/Ag6EPN8DAwWlPWgBc/xfBnx Content-Type: application/xml Date: WED, 01 Jul 2015 03:15:20 GMT Content-Length: 180 <?
You can perform the following to implement website file hosting: Upload a website file to your bucket in OBS as an object and set the MIME type for the object. Set the object ACL to public read. Access the object using a browser.
// 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.
SSE-C OBS PHP SDK supports the following two types of encryption/decryption mode: Encryption/Decryption Type Request Parameter Description SSE-KMS SseKms Indicates that SSE-KMS mode is used. Currently, only kms is supported.
If the bucket is in the OBS Infrequent Access or Archive storage class, it cannot be used as the target bucket. The Agency field indicates the name of the IAM agency for OBS created by the owner of the target bucket.
Folder list: obs://bucket-test/test/ Object list: key LastModified Size StorageClass ETag obs://bucket-test/test/test.tar.gz 2019-07-11T14:50:59Z 48.92KB standard "1dd27294ad2f152b43cd111e9fe3990f
OBS Node.js SDK provides abundant APIs for downloading objects in the following modes: Downloading an Object - Text-Based (SDK for Node.js) Downloading an Object - Streaming (SDK for Node.js) Downloading an Object - File-Based (SDK for Node.js) Downloading an Object - Range-Based
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.
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.
OBS supports five types of bucket or object ACL configuration items, as listed in the following table: Permission Description Value in OBS Android SDK READ A grantee with this permission for a bucket can obtain the list of objects in and metadata of the bucket.
Getting Started (SDK for Node.js) Before You Start (SDK for Node.js) Setting Up an OBS Environment (SDK for Node.js) Preparing a Development Environment (SDK for Node.js) Installing the SDK (SDK for Node.js) Obtaining Endpoints (SDK for Node.js) Initializing an Instance of ObsClient
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.
Restrictions To obtain bucket metadata, you must be the bucket owner or have the required permission (obs:bucket:HeadBucket in IAM or HeadBucket in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy.
When assembling parts, OBS creates an object by putting part numbers in ascending order. If any object metadata is provided in the initiation of the multipart upload, OBS will associate the metadata with the object.
How Do I Interact with OBS Without Exposing My AK and SK? How Do I Upload a Base64-Encoded Image? What Do I Do If the Resumable Upload API Reports a "400 InvalidPart" Error?
Object Download Overview (SDK for Go) OBS Go SDK provides abundant APIs for object download in the following methods: Downloading an Object - Streaming (SDK for Go) Downloading an Object - Range-Based (SDK for Go) Downloading an Object - Conditional (SDK for Go) Downloading an Object
It is not stored in OBS, does not occupy storage space, and does not incur storage charges.