检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
If this permission is granted on a bucket, anyone can read the object list, multipart uploads, metadata, and object versions in the bucket and can upload or delete objects, initiate multipart upload tasks, upload parts, assemble parts, copy parts, and abort multipart uploads.
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.
Request methods include Get, Post, Put, Delete, and Head. Select all of them. Allowed Header Optional. It specifies the allowed headers for cross-origin requests. Only CORS requests matching the allowed headers are valid.
The returned result of ObsClient.ListVersions includes the versioning objects and delete markers. Listing Versioning Objects in Simple Mode The following sample code shows how to list versioning objects in simple mode.
DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified. ContentLength string Explanation: Object size. CacheControl string Explanation: Cache-Control header in the response.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
The returned result of ObsClient.listVersions includes the versioning objects and delete markers. Listing Versioning Objects in Simple Mode The following sample code shows how to list versioning objects in simple mode.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
Table 5 GetObjectOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
Table 5 DownloadFileOutput Parameter Type Description RequestId string Explanation: Request ID returned by the OBS server DeleteMarker string Explanation: Whether the deleted object is a delete marker. LastModified string Explanation: Time when the object was last modified.
If this permission is granted on a bucket, anyone can read the object list, multipart uploads, metadata, and object versions in the bucket and can upload or delete objects, initiate multipart upload tasks, upload parts, assemble parts, copy parts, and abort multipart uploads.
The returned result of OBSListObjectsVersionsRequest includes the versioning objects and delete markers. Listing Versioning Objects in Simple Mode The following sample code shows how to list versioning objects in simple mode.
Value range: The following HTTP methods are supported: GET PUT HEAD POST DELETE Default value: None ExposeHeader string Explanation: ExposeHeader in the CORS rules of the bucket. It specifies the CORS-allowed additional headers in the response.
Value range: The following HTTP methods are supported: GET PUT HEAD POST DELETE Default value: None accessContorlExposeHeaders str Explanation: ExposeHeader in the CORS rules of the bucket. It specifies the CORS-allowed additional headers in the response.
# If you use a temporary AK and SK pair and a security token to access OBS, you must specify security_token when creating an instance. obsClient = ObsClient(access_key_id=ak, secret_access_key=sk, server=server) try: bucketName = "examplebucket" # Delete the static website
For example, assume that you delete or rename an object in a bucket. You can add a routing rule that redirects requests to other objects.
Value range: The following HTTP methods are supported: GET PUT HEAD POST DELETE Default value: None ExposeHeader string Explanation: ExposeHeader in the CORS rules of the bucket. It specifies the CORS-allowed additional headers in the response.