Retrieves the configuration of a specified access point.
Usage notes
By default, an Alibaba Cloud account has the oss:GetAccessPoint permission. RAM users and Security Token Service (STS) identities must be explicitly granted this permission. For details, see Grant custom policy permissions to a RAM user.
Syntax
ossutil api get-access-point --bucket <value> --access-point-name <value> [flags]Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--bucket | string | Yes | Name of the bucket. |
--access-point-name | string | Yes | Name of the access point. |
For global flags, see Command-line options.
This command maps to the GetAccessPoint API operation. For details on the parameters, see the API reference.
Examples
Get the configuration of access point ap-01 on examplebucket:
ossutil api get-access-point --bucket examplebucket --access-point-name ap-01Get the configuration in JSON format:
ossutil api get-access-point --bucket examplebucket --access-point-name ap-01 --output-format jsonGet the configuration in YAML format:
ossutil api get-access-point --bucket examplebucket --access-point-name ap-01 --output-format yamlWhat's next
create-access-point – Create an access point for a bucket
list-access-points – List all access points in a bucket or account
delete-access-point – Delete an access point