The get-access-point-policy command is used to query the configurations of an access point policy.
Usage notes
By default, an Alibaba Cloud account has permissions to query the configurations of an access point policy. Making query requests as a RAM user or by using Security Token Service (STS) requires the oss:GetAccessPointPolicy permission. For more information, see Grant Custom Policy to RAM Users.
Syntax
ossutil api get-access-point-policy --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-policy command corresponds to the GetAccessPointPolicy operation. For more information about the parameters within, see GetAccessPointPolicy.
For more information about supported global command-line options, see Command-line options.
Example
Query the configurations of an access point policy configured for the access point named 'ap-01' associated with examplebucket.
ossutil api get-access-point-policy --bucket examplebucket --access-point-name ap-01