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 Grant a custom policy.
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. |
-
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-01ofexamplebucket.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-01ofexamplebucketdisplay 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-01ofexamplebucketand 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