Retrieves the policy attached to an access point.
Usage notes
Alibaba Cloud accounts can run this command without additional configuration. RAM users and Security Token Service (STS) callers require the oss:GetAccessPointPolicy permission. For details, 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. |
This command maps to the GetAccessPointPolicy API operation. For full parameter details, see GetAccessPointPolicy. For supported global flags, see Command-line options.Example
Retrieve the policy for access point ap-01 on examplebucket:
ossutil api get-access-point-policy --bucket examplebucket --access-point-name ap-01