本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
檢視 Amazon S3 Outposts 存取點清單
存取點針對 Amazon S3 中的共用資料集,簡化管理大規模的資料存取。存取點為連接到儲存貯體的指定網路端點,您可以使用這些端點來執行 Amazon S3 物件操作,例如 GetObject
和 PutObject
。使用 S3 on Outposts,您必須使用存取點來存取 Outposts 儲存貯體中的任何物件。存取點僅支援虛擬主機樣式定址。
下列主題示範如何使用AWS Management Console、AWS Command Line Interface (AWS CLI) 和 AWS SDK for Java 傳回 S3 Outposts 存取點清單。
開啟位於 https://console.aws.amazon.com/s3/
的 Amazon S3 主控台。 -
在左側導覽窗格中,選擇 Outposts access points (Outposts 存取點)。
-
在 Outposts 存取點下,檢閱 S3 on Outposts 存取點。
下列 AWS 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 的開發套件範例列出了 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()); }