检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
OBS .NET SDK provides the logging function, based on the Apache Log4net open library. You can add log configuration files to enable the logging function. The procedure is as follows: Add a reference to log4net.dll in the project.
Default value: None Request Headers OBS supports the six HTTP request headers: Cache-Control, Expires, Content-Encoding, Content-Disposition, Content-Type, and Content-Language. It saves these header values in the metadata of the object.
Restrictions 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.
Option Description Value in OBS .NET SDK Expedited restore Data can be restored within 1 to 5 minutes. RestoreTierEnum.Expedited Standard restore Data can be restored within 3 to 5 hours. This is the default option.
// 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.
// 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.
A bucket is a global namespace of OBS and is a data container. It functions as a root directory of a file system and can store objects.
OK Server: OBS x-obs-request-id: BF2600000164363442EC03A8CA3DD7F5 x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSFbGOmlN0BVp1kbwN3har8jbVvtKEKN Content-Type: application/xml Date: WED, 01 Jul 2015 03:41:54 GMT Content-Length: 250 <?
/doc/2015-06-30/">STANDARD</StorageClass> Sample Response 1 2 3 4 5 6 HTTP/1.1 200 OK Server: OBS x-obs-request-id: BF2600000164368E704B571F328A8797 x-obs-id-2: 32AAAQAAEAABSAAgAAEAABAAAQAAEAABCSIsw3tPtUn6damTI5acQmQAcEfmTwl3 Date: WED, 01 Jul 2015 03:18:19 GMT Content-Length: 0
OBS supports CORS rules that allow the resources in OBS to be requested by other domains. This API deletes the CORS rules of a bucket.
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.
Run the obsutil cp d:\temp obs://bucket-test -f -r command to recursively upload all files and subfolders in the temp directory in the D: drive to the temp folder in bucket bucket-test. obsutil cp d:\temp obs://bucket-test -f -r Start at 2024-09-30 08:14:12.1406275 +0000 UTC Parallel
OBS provides developers with APIs for facilitating cross-origin resource access. For more information, see CORS. Parent topic: CORS
OBS provides developers with APIs for facilitating cross-origin resource access. For more information, see CORS. Parent topic: CORS
OBS provides developers with APIs for facilitating cross-origin resource access. For more information, see CORS. Parent topic: CORS
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.
The following gives an example of creating a watermark style on OBS Console: Log in to OBS Console and click the required bucket name. In the navigation pane, choose Data Processing > Image Processing.
// 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.
In this case, OBS deletes the delete marker and returns its version ID in the response.