检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
22 23 24 25 26 27 28 29 30 31 32 33 34 35 HTTP/1.1 200 OK Server: OBS x-obs-request-id: BF260000016436B69D82F14E93528658 x-obs-id-2: 32AAAQAAEAABAAAQAAEAABAAAQAAEAABCSjTh8661+HF5y8uAnTOBIpNO133hji+ Content-Type: application/xml Date: WED, 01 Jul 2015 02:39:28 GMT Content-Length:
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. The following code shows how to create a bucket: obsClient.createBucket("bucketname"); Bucket names are globally unique.
the version ID of the object to be copied. request.setVersionId("versionid"); request.setDestinationBucketName("destbucketname"); request.setDestinationObjectKey("destobjectname"); obsClient.copyObject(request); To handle the error codes possibly returned during the operation, see OBS
GetBucketWebsiteConfiguration", "\t" + config.getKey()); Log.i("GetBucketWebsiteConfiguration", "\t" + config.getSuffix()); for(RouteRule rule : config.getRouteRules()){ Log.i("GetBucketWebsiteConfiguration", "\t" + rule); } To handle the error codes possibly returned during the operation, see OBS
// 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.
// 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.
LoggingEnabled : {} }, function (err, result) { if(err){ console.log('Error-->' + err); }else{ console.log('Status-->' + result.CommonMsg.Status); } }); To handle the error codes possibly returned during the operation, see OBS
Bucket: 'bucketname' }, function (err, result) { if(err){ console.log('Error-->' + err); }else{ console.log('Status-->' + result.CommonMsg.Status); } }); To handle the error codes possibly returned during the operation, see OBS
Procedure In the navigation pane of OBS Console, choose Object Storage. In the bucket list, click the bucket you want to operate. The Objects page is displayed. Click a desired object.
The mapping between OBS regions and endpoints must comply with what is listed in Regions and Endpoints.
Restrictions To download an object, you must be the bucket owner or have the required permission (obs:object:GetObject in IAM or GetObject in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Configuring an Object Policy.
An object will be automatically deleted by the OBS server once it expires.
It is provided for the OBS server to verify data integrity. The OBS server will compare this MD5 value with the MD5 value calculated based on the object data. If the two values are not the same, HTTP status code 400 is returned.
PermissionEnum.FullControl There are five access control policies pre-defined in OBS, as described in the following table: Policy Description Value in OBS .NET SDK private The owner of a bucket or object has the FULL_CONTROL permission for the bucket or object.
It is provided for the OBS server to verify data integrity. The OBS server will compare this MD5 value with the MD5 value calculated based on the object data. If the two values are not the same, HTTP status code 400 is returned.
metadata) GetBucketLocation (to get the bucket location) GetObject (to obtain object content and metadata) RestoreObject (to restore objects from Archive storage) GetObjectVersion (to obtain the content and metadata of a specified object version) Procedure In the navigation pane of OBS
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.
result.InterfaceResult){ console.log('StorageClass-->' + result.InterfaceResult.StorageClass); console.log('RequestId-->' + result.InterfaceResult.RequestId); } } }); To handle the error codes possibly returned during the operation, see OBS
result.CommonMsg.Status); if(result.CommonMsg.Status < 300 && result.InterfaceResult){ console.log('Location-->' + result.InterfaceResult.Location); } } }); To handle the error codes possibly returned during the operation, see OBS