检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Restrictions The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
/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
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 <?
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.
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 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.
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.
Error Responses Table 2 List of OBS access error codes Error Code Description HTTP Status Code RestoreAlreadyInProgress Explanation: The object is being restored. The request conflicts with another.
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.
When assembling parts, OBS arranges parts in ascending order by part number. If any object metadata is provided during the initiation of the multipart upload, OBS will associate this metadata with the object.
OBS PHP SDK provides the logging function based on the monolog log library. You can call ObsClient->initLog to enable and configure logging. Sample code is as follows: $obsClient -> initLog ([ 'FilePath' => './logs', // Set the log folder.