Help Center/ Object Storage Service/ API Reference/ APIs/ Advanced Bucket Settings/ Deleting the Direct Reading Policy of Archive Objects in a Bucket
Updated on 2024-04-22 GMT+08:00

Deleting the Direct Reading Policy of Archive Objects in a Bucket

Functions

This API deletes the direct reading configurations of Archive objects in a bucket.

After the direct reading configurations are deleted, Archive objects in the bucket cannot be read directly. If you then perform operations on Archive objects that have not been restored or are being restored, a 403 Forbidden error will be returned.

To delete such configurations, you must have the DeleteDirectColdAccessConfiguration permission. By default, only the bucket owner can perform this operation. The bucket owner can grant the permission to other users by configuring the bucket policy or user policy.

Request Syntax

1
2
3
4
DELETE /?directcoldaccess HTTP/1.1 
Host: bucketname.obs.region.myhuaweicloud.eu
Date: date
Authorization: Authorization

Request Parameters

This request contains no message parameters.

Request Headers

This request uses common headers. For details, see Table 3.

Request Elements

This request involves no elements.

Response Syntax

1
2
3
4
HTTP/1.1 status_code
Date: date
Content-Type: text/xml 
Date: date

Response Headers

The response to the request uses common headers. For details, see Table 1.

Response Elements

This response contains no elements.

Error Responses

No special error responses are returned. For details about error responses, see Table 2.

Sample Request

1
2
3
4
5
6
DELETE /?directcoldaccess HTTP/1.1
User-Agent: curl/7.29.0
Host: examplebucket.obs.region.myhuaweicloud.eu
Accept: */*
Date: Tue, 30 Apr 2019 03:04:48 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:5DGAS7SBbMC1YTC4tNXY57Zl2Fo=