本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
檢視 Amazon S3 on Outposts 端點上的清單
若要將請求路由至 Amazon S3 on Outpost 存取點,您必須建立和設定 S3 on Outposts 端點。若要建立端點,您需要與 Outposts 主要區域的服務連結有效連接。Outpost 上的每個 Virtual Private Cloud (VPC) 可以有一個相關聯的端點。如需端點配額的詳細資訊,請參閱 S3 on Outposts 網路需求。您必須建立端點,才能存取您的 Outposts 儲存貯體並執行物件操作。如需詳細資訊,請參閱端點。
下列範例示範如何使用 AWS Management Console、 AWS Command Line Interface (AWS CLI) 和 傳回 S3 on Outposts 端點的清單 適用於 Java 的 AWS SDK。
開啟位於 https://console.aws.amazon.com/s3/
的 Amazon S3 主控台。 -
在左側導覽窗格中,選擇 Outposts access points (Outposts 存取點)。
-
在 Outposts access points (Outposts 存取點)頁面上,選擇 Outposts endpoints (Outposts 端點) 標籤。
-
在 Outposts endpoints (Outposts 端點)中,您可以查看 S3 on Outposts 端點清單。
下列 AWS CLI 範例會列出與您帳戶相關聯之 AWS Outposts 資源的端點。如需此命令的詳細資訊,請參閱 AWS CLI 參考中的 list-endpoints
aws s3outposts list-endpoints
下列適用於 Java 的開發套件範例列出了 Outpost 的端點。如需詳細資訊,請參閱 Amazon Simple Storage Service API 參考中的 ListEndpoints。
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); }