检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Default value: None deleteMarker bool Explanation: Whether the deleted object is a delete marker Value range: True: The deleted object is a delete marker. False: The deleted object is not a delete marker. Default value: False storageClass str Explanation: Object storage class.
marker Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker.
marker Value range: true: The deleted object is a delete marker. false: The deleted object is not a delete marker.
DELETE: Requests that a server delete a specific resource such as an object. HEAD: Requests that a server return the description of a specific resource, for example, obtaining object metadata.
By default, only the bucket owner can delete the tags of a bucket. The bucket owner can allow other users to perform this operation by setting a bucket policy or granting them the permission.
If the version you are adding tags to is a delete marker, OBS returns 404 Not Found. Tags cannot be set for files in parallel file systems. An object can have up to 10 tags. Constraints on the tag key and value: A tag key is case sensitive and must be unique.
Delete an object. Delete an object of a specified version. Obtain bucket ACL information. Configure a bucket ACL. Obtain object content. Obtain object metadata. Not supported Which Permissions Should I Select?
OBSACLRead WRITE A grantee with this permission for a bucket can upload, overwrite, and delete any object in the bucket. This permission is not applicable to objects. OBSACLWrite READ_ACP A grantee with this permission can obtain the ACL of a bucket or object.
Method ObsClient.createSignedUrl(method, bucketName, objectKey, specialParam, expires, headers, queryParams) Request Parameters Table 1 List of request parameters Parameter Type Mandatory (Yes/No) Description method str Yes Explanation: HTTP methods Value range: GET POST PUT DELETE
Value range: The following HTTP methods are supported: GET PUT HEAD POST DELETE Default value: None allowedOrigin List<String> Yes Explanation: The origin from which the requests can access the bucket. Restrictions: Domain name of the origin.
const result = await obsClient.getBucketMetadata(params); if (result.CommonMsg.Status <= 300) { console.log("Delete bucket(%s)'s metadata successful!"
AclPublicReadWrite public-read-write Public read/write If this permission is granted on a bucket, anyone can read the object list, multipart tasks, metadata, and object versions in the bucket, and can upload or delete objects, initiate multipart upload tasks, upload parts, assemble
DELETE: Requests that a server delete a specific resource such as an object. HEAD: Requests that a server return the description of a specific resource, for example, obtaining object metadata.
If the object has a delete marker, status code 404 is returned. To restore an object of a specified version, the versionId parameter can be used to specify the desired version. Request Syntax POST /ObjectName?
'endpoint' => 'https://your-endpoint' ] ); $resp = $obsClient->getBucketPolicy([ 'Bucket' => 'bucketname' ]); printf("RequestId:%s\n",$resp['RequestId']); printf("Policy:%s\n",$resp['Policy']); Deleting a Bucket Policy You can call ObsClient->deleteBucketPolicy to delete
DeleteMarkers DeleteMarker[] Explanation: List of delete markers in the bucket. For details, see Table 8. CommonPrefixes Table 6[] Explanation: List of object name prefixes grouped based on the Delimiter parameter (if specified). For details, see CommonPrefix.
AclPublicReadWrite public-read-write Public read/write If this permission is granted on a bucket, anyone can read the object list, multipart tasks, metadata, and object versions in the bucket, and can upload or delete objects, initiate multipart upload tasks, upload parts, assemble
request to delete an object.
A grantee with this permission for a bucket can upload, overwrite, and delete any object or part in the bucket. This permission is not available for objects. PERMISSION_READ_ACP READ_ACP Permission to read an ACL.
A grantee with this permission for a bucket can upload, overwrite, and delete any object or part in the bucket. This permission is not available for objects. PERMISSION_READ_ACP READ_ACP Permission to read an ACL.