All Products
Search
Document Center

Object Storage Service:get-access-point-policy

Last Updated:Mar 20, 2026

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]
ParameterTypeDescription
--bucketstringName of the bucket.
--access-point-namestringName 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