

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 檢視 Amazon S3 on Outposts 端點上的清單
<a name="S3OutpostsListEndpoints"></a>

若要將請求路由至 Amazon S3 on Outpost 存取點，您必須建立和設定 S3 on Outposts 端點。若要建立端點，您需要與 Outposts 主要區域的服務連結有效連接。Outpost 上的每個 Virtual Private Cloud (VPC) 可以有一個相關聯的端點。如需端點配額的詳細資訊，請參閱 [S3 on Outposts 網路需求](S3OnOutpostsRestrictionsLimitations.md#S3OnOutpostsConnectivityRestrictions)。您必須建立端點，才能存取您的 Outposts 儲存貯體並執行物件操作。如需詳細資訊，請參閱[端點](S3OutpostsWorkingBuckets.md#S3OutpostsEP)。

下列範例示範如何使用 AWS 管理主控台、 AWS Command Line Interface (AWS CLI) 和 傳回 S3 on Outposts 端點的清單 適用於 Java 的 AWS SDK。

## 使用 S3 主控台
<a name="s3-outposts-endpoint-list"></a>

1. 開啟位於 [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/) 的 Amazon S3 主控台。

1. 在左側導覽窗格中，選擇 **Outposts access points** (Outposts 存取點)。

1. 在 **Outposts access points** (Outposts 存取點)頁面上，選擇 **Outposts endpoints** (Outposts 端點) 標籤。

1. 在 **Outposts endpoints** (Outposts 端點)中，您可以查看 S3 on Outposts 端點清單。

## 使用 AWS CLI
<a name="S3OutpostsListEndpointsCLI"></a>

下列 AWS CLI 範例列出與您帳戶相關聯之 AWS Outposts 資源的端點。如需此命令的詳細資訊，請參閱 *AWS CLI 參考*中的 [list-endpoints](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3outposts/list-endpoints.html)。

```
aws s3outposts list-endpoints
```

## 使用適用於 Java 的 AWS 開發套件
<a name="S3OutpostsListEndpointsJava"></a>

下列適用於 Java 的開發套件範例列出了 Outpost 的端點。如需詳細資訊，請參閱 *Amazon Simple Storage Service API 參考*中的 [ListEndpoints](https://docs.aws.amazon.com/AmazonS3/latest/API/API_s3outposts_ListEndpoints.html)。

```
import com.amazonaws.services.s3outposts.AmazonS3Outposts;
import com.amazonaws.services.s3outposts.AmazonS3OutpostsClientBuilder;
import com.amazonaws.services.s3outposts.model.ListEndpointsRequest;
import com.amazonaws.services.s3outposts.model.ListEndpointsResult;

public void listEndpoints() {
    AmazonS3Outposts s3OutpostsClient = AmazonS3OutpostsClientBuilder
                .standard().build();
                
    ListEndpointsRequest listEndpointsRequest = new ListEndpointsRequest();
    ListEndpointsResult listEndpointsResult = s3OutpostsClient.listEndpoints(listEndpointsRequest);
    System.out.println("List endpoints result is " + listEndpointsResult);
}
```