application/libraries/obs_upload/examplesBucketOperationsSample.php

This sample demonstrates how to do bucket-related operations (such as do bucket ACL/CORS/Lifecycle/Logging/Website/Location/Tagging/OPTIONS) on Huawei OBS using the OBS SDK for PHP.

Functions

createBucket()

createBucket() 

getBucketLocation()

getBucketLocation() 

getBucketStorageInfo()

getBucketStorageInfo() 

doBucketQuotaOperation()

doBucketQuotaOperation() 

doBucketVersioningOperation()

doBucketVersioningOperation() 

doBucketAclOperation()

doBucketAclOperation() 

doBucketCorsOperation()

doBucketCorsOperation() 

optionsBucket()

optionsBucket() 

getBucketMetadata()

getBucketMetadata() 

doBucketLifecycleOperation()

doBucketLifecycleOperation() 

doBucketLoggingOperation()

doBucketLoggingOperation(  $ownerId) 

Parameters

$ownerId

doBucketWebsiteOperation()

doBucketWebsiteOperation() 

doBucketTaggingOperation()

doBucketTaggingOperation() 

deleteBucket()

deleteBucket()