本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
檢視自訂端點
若要使用 檢視自訂端點 AWS Management Console,請前往叢集的叢集詳細資訊頁面,並查看端點區段下的 。本節僅包含有關自訂端點的資訊。內建端點的詳細資訊會列在主要的 Details (詳細資訊) 中。若要查看特定自訂端點的詳細資訊,請選取其名稱,以帶出該端點的詳細資訊頁面。
以下螢幕擷取畫面顯示最初為空白的 Aurora 叢集的自訂端點的清單。

為該叢集建立一些自訂端點之後,它們會顯示在 Endpoints (端點) 區段下。

按一下詳細資訊頁面會顯示端點目前與其關聯的資料庫執行個體。

若要查看新增至叢集的新資料庫執行個體是否也會自動新增至端點的其他詳細資訊,請開啟端點的 Edit (編輯) 頁面。
若要使用 檢視自訂端點 AWS CLI,請執行 describe-db-cluster-endpoints命令。
下列命令會顯示與特定區域中的特定叢集相關聯的自訂端點。輸出會同時包括內建端點和任何自訂端點。
用於 Linux, macOS、 或 Unix:
aws rds describe-db-cluster-endpoints --region
region_name
\ --db-cluster-identifiercluster_id
用於 Windows:
aws rds describe-db-cluster-endpoints --region
region_name
^ --db-cluster-identifiercluster_id
以下顯示來自 describe-db-cluster-endpoints
命令的一些範例輸出。EndpointType
或 WRITER
的 READER
代表叢集的內建讀寫和唯讀端點。EndpointType
的 CUSTOM
代表您建立並選擇相關聯資料庫執行個體的端點。其中一個端點有非空白的 StaticMembers
欄位,代表它與精確的一組資料庫執行個體相關聯。另一個端點有非空白的 ExcludedMembers
欄位,代表該端點與所有資料庫執行個體相關聯 (列在 ExcludedMembers
下的除外)。這種第二個類型的自訂端點會成長,以容納您新增至叢集的新執行個體。
{
"DBClusterEndpoints": [
{
"Endpoint": "custom-endpoint-demo.cluster-c7tj4example.ca-central-1.rds.amazonaws.com",
"Status": "available",
"DBClusterIdentifier": "custom-endpoint-demo",
"EndpointType": "WRITER"
},
{
"Endpoint": "custom-endpoint-demo.cluster-ro-c7tj4example.ca-central-1.rds.amazonaws.com",
"Status": "available",
"DBClusterIdentifier": "custom-endpoint-demo",
"EndpointType": "READER"
},
{
"CustomEndpointType": "ANY",
"DBClusterEndpointIdentifier": "powers-of-2",
"ExcludedMembers": [],
"DBClusterIdentifier": "custom-endpoint-demo",
"Status": "available",
"EndpointType": "CUSTOM",
"Endpoint": "powers-of-2.cluster-custom-c7tj4example.ca-central-1.rds.amazonaws.com",
"StaticMembers": [
"custom-endpoint-demo-04",
"custom-endpoint-demo-08",
"custom-endpoint-demo-01",
"custom-endpoint-demo-02"
],
"DBClusterEndpointResourceIdentifier": "cluster-endpoint-W7PE3TLLFNSHXQKFU6J6NV5FHU",
"DBClusterEndpointArn": "arn:aws:rds:ca-central-1:111122223333:cluster-endpoint:powers-of-2"
},
{
"CustomEndpointType": "ANY",
"DBClusterEndpointIdentifier": "eight-and-higher",
"ExcludedMembers": [
"custom-endpoint-demo-04",
"custom-endpoint-demo-02",
"custom-endpoint-demo-07",
"custom-endpoint-demo-05",
"custom-endpoint-demo-03",
"custom-endpoint-demo-06",
"custom-endpoint-demo-01"
],
"DBClusterIdentifier": "custom-endpoint-demo",
"Status": "available",
"EndpointType": "CUSTOM",
"Endpoint": "eight-and-higher.cluster-custom-123456789012.ca-central-1.rds.amazonaws.com",
"StaticMembers": [],
"DBClusterEndpointResourceIdentifier": "cluster-endpoint-W7PE3TLLFNSHYQKFU6J6NV5FHU",
"DBClusterEndpointArn": "arn:aws:rds:ca-central-1:111122223333:cluster-endpoint:eight-and-higher"
}
]
}
若要使用 檢視自訂端點API,請執行 D escribeDBClusterEndpoints.html RDS 操作。