

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

# 檢視自訂端點
<a name="aurora-endpoint-viewing"></a>

## 主控台
<a name="aurora-view-endpoint.console"></a>

若要使用AWS 管理主控台檢視自訂端點，請前往叢集詳細資訊頁面，並查看 **Endpoints (端點)** 區段下方。本節僅包含有關自訂端點的資訊。內建端點的詳細資訊會列在主要的 **Details (詳細資訊)** 中。若要查看特定自訂端點的詳細資訊，請選取其名稱，以帶出該端點的詳細資訊頁面。

以下螢幕擷取畫面顯示最初為空白的 Aurora 叢集的自訂端點的清單。

![\[沒有自訂端點的端點頁面。\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointEmptyList.png)


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

![\[具有兩個自訂端點的端點頁面。\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointList.png)


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

![\[與自訂端點相關聯的資料庫執行個體。\]](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointDetail.png)


若要查看新增至叢集的新資料庫執行個體是否也會自動新增至端點的其他詳細資訊，請開啟端點的 **Edit (編輯)** 頁面。

## AWS CLI
<a name="aurora-view-endpoint.cli"></a>

若要使用 AWS CLI 檢視自訂端點，請執行 [describe-db-cluster-endpoints](https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-cluster-endpoints.html) 命令。

下列命令會顯示與特定區域中的特定叢集相關聯的自訂端點。輸出會同時包括內建端點和任何自訂端點。

對於 Linux、macOS 或 Unix：

```
aws rds describe-db-cluster-endpoints --region region_name \
  --db-cluster-identifier cluster_id
```

在 Windows 中：

```
aws rds describe-db-cluster-endpoints --region region_name ^
  --db-cluster-identifier cluster_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"
		}
	]
}
```

## RDS API
<a name="aurora-view-endpoint.api"></a>

若要使用 RDS API 檢視自訂端點，請執行 [DescribeDBClusterEndpoints.html](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBClusterEndpoints.html.html) 操作。