Help Center> Object Storage Service> API Reference> APIs> Advanced Bucket Settings> Deleting the Direct Reading Policy for Archive Objects in a Bucket

Deleting the Direct Reading Policy for Archive Objects in a Bucket

Functions

This API deletes the direct reading configuration of Archive objects of a specified bucket.

After being deleted, Archive objects in a bucket cannot be read directly. If you perform operations on Archive objects that are not restored or are being restored, a 403 Forbidden error is returned.

To perform this operation, you must have the GetDirectColdAccessConfiguration 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.cn-north-4.myhuaweicloud.com 
Date: date
Authorization: Authorization

Request Parameters

This request contains no parameter.

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 involves 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.cn-north-4.myhuaweicloud.com
Accept: */*
Date: Tue, 30 Apr 2019 03:04:48 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:5DGAS7SBbMC1YTC4tNXY57Zl2Fo=