

# カスタムエンドポイントの表示
<a name="aurora-endpoint-viewing"></a>

## コンソール
<a name="aurora-view-endpoint.console"></a>

AWS マネジメントコンソール でカスタムエンドポイントを表示するには、クラスターの詳細ページに移動し、[**エンドポイント**] セクションを参照します。このセクションには、カスタムエンドポイントに関する情報のみが表示されます。組み込みエンドポイントに関する詳細は、メインの [**詳細**] セクションに表示されます。特定のカスタムエンドポイントに関する詳細を表示するには、その名前を選択してエンドポイントの詳細ページを表示します。

次のスクリーンショットは、Aurora クラスターのカスタムエンドポイントのリストが当初は空であることを示しています。

![カスタムエンドポイントのないエンドポイントページ。](http://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointEmptyList.png)


クラスターのカスタムエンドポイントを作成すると、[**Endpoints (エンドポイント)**] セクションに表示されます。

![2 つのカスタムエンドポイントを含むエンドポイントページ。](http://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointList.png)


クリックを繰り返して詳細ページまで移動すると、エンドポイントに現在関連付けられている DB インスタンスが表示されます。

![カスタムエンドポイントに関連付けられた DB インスタンス。](http://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/AuroraUserGuide/images/AuroraCustomEndpointDetail.png)


クラスターに追加された新しい DB インスタンスがエンドポイントにも自動的に追加されるかどうかの詳細を表示するには、エンドポイントの **[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` は、ユーザーが作成し、関連する DB インスタンスを選択した、エンドポイントを示します。エンドポイントの 1 つに含まれている空ではない `StaticMembers` フィールドは、エンドポイントが DB インスタンスの厳密なセットに関連付けられることを示します。他のエンドポイントの空ではない `ExcludedMembers` フィールドは、`ExcludedMembers` にリストアップされているものを*除いた*すべての DB インスタンスにエンドポイントが関連付けられることを示します。この 2 番目の種類のカスタムエンドポイントは、クラスターに追加された新しいインスタンスを包含して増大します。

```
{
	"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) オペレーションを実行します。