All Products
Search
Document Center

Object Storage Service:get-access-point-public-access-block

Last Updated:Jan 20, 2025

The get-access-point-public-access-block command is used to query the Block Public Access configurations of an access point.

Usage notes

By default, an Alibaba Cloud account has the permission to query the Block Public Access configurations of a bucket. Making query requests as a RAM user or by using Security Token Service (STS) requires oss:GetAccessPointPublicAccessBlock permission. For more information, see Attach a custom policy to a RAM user.

Command syntax

ossutil api get-access-point-public-access-block --bucket value --access-point-name value [flags]

Parameter

Type

Description

--bucket

string

Name of the bucket.

--access-point-name

string

Name of the access point.

Note
  • The get-access-point-public-access-block command corresponds to the GetAccessPointPublicAccessBlock operation. For more information about the parameters within, see GetAccessPointPublicAccessBlock.

  • For more information about supported global command-line options, see Command-line options.

Examples

  • Query the Block Public Access configurations of an access point named ap-01 of examplebucket.

    ossutil api get-access-point-public-access-block --bucket examplebucket --access-point-name ap-01
  • Query the Block Public Access configurations of an access point named ap-01 of examplebucket display the configurations in the JSON format.

    ossutil api get-access-point-public-access-block --bucket examplebucket --access-point-name ap-01 --output-format json
  • Query the Block Public Access configurations of an access point named ap-01 of examplebucket and display the configurations in the YAML format.

    ossutil api get-access-point-public-access-block --bucket examplebucket --access-point-name ap-01 --output-format yaml