All Products
Search
Document Center

Object Storage Service:get-access-point

Last Updated:Jan 17, 2025

The get-access-point command is used to obtain information about created access points.

Notes

By default, an Alibaba Cloud account has the permission to obtain information about created access points. Obtaining information as a RAM user or by using Security Token Service (STS) requires the oss:GetAccessPoint permission. For more information, see Grant custom policy permissions to a RAM user.

Syntax

ossutil api get-access-point --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 command corresponds to the GetAccessPoint API operation. For more information about the parameters within, see GetAccessPoint.

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

Examples

  • Obtain information about the access point named "ap-01" associated with examplebucket.

    ossutil api get-access-point --bucket examplebucket --access-point-name ap-01
  • Obtain information about the access point named "ap-01" associated with examplebucket and display the result in the JSON format.

    ossutil api get-access-point --bucket examplebucket --access-point-name ap-01 --output-format json
  • Obtain information about the access point named "ap-01" associated with examplebucket and display the result in the YAML format.

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