All Products
Search
Document Center

Object Storage Service:DeletePublicAccessBlock

Last Updated:Apr 28, 2024

Deletes the Block Public Access configurations of Object Storage Service (OSS) resources.

Usage notes

By default, an Alibaba Cloud account has the permissions to delete the Block Public Access configurations of OSS resources. If you want to delete the Block Public Access configurations of OSS resources by using a RAM user or the access credentials provided by Security Token Service (STS), you must have the oss:DeletePublicAccessBlock permission. For more information, see Common examples of RAM policies.

Request syntax

DELETE /?publicAccessBlock HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

Request headers

All headers in a DeletePublicAccessBlock request are common request headers. For more information, see Common request headers.

Response headers

The response to a DeletePublicAccessBlock request contains only common response headers. For more information, see Common response headers.

Examples

  • Sample request

    DELETE /?publicAccessBlock HTTP/1.1
    Date: Mon, 19 Feb 2024 08:40:17 GMT
    Content-Length: 0
    Content-Type: application/xml
    Host: oss-cn-hangzhou.aliyuncs.com
    Authorization: OSS qn6q**************:77Dv****************
  • Sample success response

    HTTP/1.1 204 OK
    x-oss-request-id: 534B371674E88A4D8906****
    Date: Mon, 19 Feb 2024 08:40:17 GMT
    Server: AliyunOSS