

# 查看 Amazon S3 on Outposts 访问点的列表
<a name="S3OutpostsAccessPointList"></a>

访问点可简化对 Amazon S3 中的共享数据集的大规模数据访问管理。访问点是附加到存储桶的命名网络端点，您可以使用这些存储桶执行 Amazon S3 对象操作（如 `GetObject` 和 `PutObject`）。对于 S3 on Outposts，您必须使用访问点访问 Outposts 存储桶中的任何对象。访问点仅支持虚拟主机式寻址。

以下主题说明如何使用 Amazon Web Services 管理控制台、Amazon Command Line Interface (Amazon CLI) 和 适用于 Java 的 Amazon SDK 返回 S3 on Outposts 访问点的列表。

## 使用 S3 控制台
<a name="s3-outposts-bucket-list-accesspoints"></a>

1. 通过以下网址打开 Amazon S3 控制台：[https://console.aws.amazon.com/s3/](https://console.amazonaws.cn/s3/)。

1. 在左侧导航窗格中，选择 **Outposts access points**（Outposts 访问点）。

1. 在 **Outposts access points**（Outposts 访问点）下，查看您的 S3 on Outposts 访问点列表。

## 使用 Amazon CLI
<a name="S3OutpostsListAccessPointCLI"></a>

以下 Amazon CLI 示例列出 Outposts 存储桶的接入点。要运行此命令，请将 `user input placeholders` 替换为您自己的信息。

```
aws s3control list-access-points --account-id 123456789012 --bucket arn:aws:s3-outposts:region:123456789012:outpost/op-01ac5d28a6a232904/bucket/example-outposts-bucket
```

## 使用适用于 Java 的 Amazon 软件开发工具包
<a name="S3OutpostsListAccessPointJava"></a>

以下 SDK for Java 示例列出 Outposts 存储桶的接入点。

```
import com.amazonaws.services.s3control.model.*;

public void listAccessPoints(String bucketArn) {

    ListAccessPointsRequest reqListAPs = new ListAccessPointsRequest()
            .withAccountId(AccountId)
            .withBucket(bucketArn);

    ListAccessPointsResult respListAPs = s3ControlClient.listAccessPoints(reqListAPs);
    System.out.printf("ListAccessPoints Response: %s%n", respListAPs.toString());

}
```