

# 查看通用存储桶的接入点的详细信息
<a name="access-points-details"></a>

本节介绍如何使用 Amazon Web Services 管理控制台、Amazon Command Line Interface或 REST API 来查看通用存储桶的接入点的详细信息。

## 使用 S3 控制台
<a name="access-points-details-console"></a>

**查看 Amazon Web Services 账户中接入点的详细信息**

1. 登录到 Amazon Web Services 管理控制台，然后通过以下网址打开 Amazon S3 控制台：[https://console.aws.amazon.com/s3/](https://console.amazonaws.cn/s3/)。

1. 在页面顶部的导航栏中，选择当前所显示 Amazon Web Services 区域的名称。接下来，选择要列出其接入点的区域。

1. 在控制台左侧的导航窗格中，选择**接入点**。

1. （可选）按名称搜索接入点。只有您选择的 Amazon Web Services 区域中的接入点才会出现在此处。

1. 选择要管理或使用的接入点的名称。

1. 选择**属性**选项卡以查看所选接入点的接入点数据来源、账户 ID、Amazon Web Services 区域、创建日期、网络来源、S3 URI、ARN 和接入点别名。

1. 选择**权限**选项卡，以查看所选接入点的屏蔽公共访问权限设置和接入点策略。
**注意**  
创建接入点后，您无法更改接入点的任何屏蔽公共访问权限设置。

## 使用 Amazon CLI
<a name="access-points-details-cli"></a>

以下 `get-access-point` 示例命令显示了如何使用 Amazon CLI 来查看接入点的详细信息。

以下命令列出了 Amazon Web Services 账户 {{111122223333}} 的附加到 S3 存储桶 {{amzn-s3-demo-bucket}} 的接入点 {{my-access-point}} 的详细信息。

```
aws s3control get-access-point --name {{my-access-point}} --account-id {{111122223333}}         
```

输出示例：

```
{
    "Name": "{{my-access-point}}",
    "Bucket": "{{amzn-s3-demo-bucket}}",
    "NetworkOrigin": "Internet",
    "PublicAccessBlockConfiguration": {
        "BlockPublicAcls": true,
        "IgnorePublicAcls": true,
        "BlockPublicPolicy": true,
        "RestrictPublicBuckets": true
    },
    "CreationDate": "2016-08-29T22:57:52Z",
    "Alias": "{{my-access-point}}-u1ny6bhm7moymqx8cuon8o1g4mwikuse2a-s3alias",
    "AccessPointArn": "arn:aws:s3:{{Amazon Web Services 区域}}:111122223333:accesspoint/{{my-access-point}}",
    "Endpoints": {
        "ipv4": "s3-accesspoint.{{Amazon Web Services 区域}}.amazonaws.com",
        "fips": "s3-accesspoint-fips.{{Amazon Web Services 区域}}.amazonaws.com",
        "fips_dualstack": "s3-accesspoint-fips.dualstack.{{Amazon Web Services 区域}}.amazonaws.com",
        "dualstack": "s3-accesspoint.dualstack.{{Amazon Web Services 区域}}.amazonaws.com"
    },
    "BucketAccountId": "111122223333"
}
```

以下命令列出了 Amazon Web Services 账户 {{444455556666}} 的接入点 {{example-fsx-ap}} 的详细信息。此接入点附加到 Amazon FSx 文件系统。

```
aws s3control get-access-point --name {{example-fsx-ap}} --account-id {{444455556666}}         
```

输出示例：

```
{
    "Name": "{{example-fsx-ap}}",
    "Bucket": "",
    "NetworkOrigin": "Internet",
    "PublicAccessBlockConfiguration": {
        "BlockPublicAcls": true,
        "IgnorePublicAcls": true,
        "BlockPublicPolicy": true,
        "RestrictPublicBuckets": true
    },
    "CreationDate": "2025-01-19T14:16:12Z",
    "Alias": "{{example-fsx-ap}}-qrqbyebjtsxorhhaa5exx6r3q7-ext-s3alias",
    "AccessPointArn": "arn:aws:s3:{{Amazon Web Services 区域}}:444455556666:accesspoint/{{example-fsx-ap}}",
    "Endpoints": {
        "ipv4": "s3-accesspoint.{{Amazon Web Services 区域}}.amazonaws.com",
        "fips": "s3-accesspoint-fips.{{Amazon Web Services 区域}}.amazonaws.com",
        "fips_dualstack": "s3-accesspoint-fips.dualstack.{{Amazon Web Services 区域}}.amazonaws.com",
        "dualstack": "s3-accesspoint.dualstack.{{Amazon Web Services 区域}}.amazonaws.com"
    },
    "DataSourceId": "arn:aws::fsx:{{Amazon Web Services 区域}}:444455556666:{{file-system/fs-5432106789abcdef0/volume/vol-0123456789abcdef0}}",
    "DataSourceType": "FSX_OPENZFS"
}
```

有关更多信息和示例，请参阅《Amazon CLI 命令参考》**中的 [https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3control/get-access-point.html](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3control/get-access-point.html)。

## 使用 REST API
<a name="access-points-details-rest"></a>

可以使用 REST API 查看接入点的详细信息。有关更多信息，请参阅《Amazon Simple Storage Service API 参考》**中的 [https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_GetAccessPoint.html](https://docs.amazonaws.cn/AmazonS3/latest/API/API_control_GetAccessPoint.html)。