PolarDB on ENS のエッジクラスターのエンドポイントを照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeDBClusterEndpointsZonal |
get |
*All Resource
|
なし | なし |
リクエスト構文
GET HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBClusterId |
string |
必須 |
クラスター ID。 |
pc-************* |
| DBEndpointId |
string |
任意 |
クラスターエンドポイント ID。 |
pe-************* |
| DescribeType |
string |
任意 |
AI ノードに関する情報を返すかどうかを指定します。 |
AI |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
2DC120BF-6EBA-4C63-BE99-B09F9E****** |
| Items |
array<object> |
クラスターエンドポイントの詳細。 |
|
|
array<object> |
|||
| DBEndpointId |
string |
エンドポイント ID。 |
pe-************* |
| PolarSccTimeoutAction |
string |
グローバル整合性タイムアウトのポリシー。有効な値は次のとおりです:
|
0 |
| DBClusterId |
string |
クラスター ID。 |
pc-bp1s826a1up****** |
| Nodes |
string |
エンドポイントに設定されているノードのリスト。 |
pi-***************,pi-*************** |
| ReadWriteMode |
string |
読み書きモード。有効な値は次のとおりです:
|
ReadOnly |
| DBEndpointDescription |
string |
エンドポイントの名前。 |
test |
| PolarSccWaitTimeout |
string |
グローバル整合性のタイムアウト期間。 |
100 |
| NodeWithRoles |
string |
エンドポイントにおける各ノードのロール。プライマリノードは Writer ロールです。エンドポイントには複数の読み取り専用ノードを追加できるため、各読み取り専用ノードには `Reader1`、`Reader2` のように、末尾に番号が付加されたロール名が割り当てられます。 |
Reader1 |
| AutoAddNewNodes |
string |
新しいノードをデフォルトのクラスターエンドポイントに自動的に追加するかどうかを指定します。有効な値:
|
Enable |
| EndpointType |
string |
クラスターエンドポイントのタイプ。有効な値:
|
Custom |
| AddressItems |
array<object> |
接続文字列の情報。 |
|
|
object |
|||
| DashboardUsed |
boolean |
エンドポイントが PolarDB 検索ノードのダッシュボードエンドポイントであるかどうかを示します。有効な値:
|
True |
| PrivateZoneConnectionString |
string |
エンドポイントに紐付けられているプライベートドメイン名です。 |
***.***.**.com |
| VPCId |
string |
仮想プライベートクラウド (VPC) の ID です。 |
vpc-*************** |
| VSwitchId |
string |
vSwitch の ID です。 |
vsw-************ |
| Port |
string |
ポート番号。 |
1521 |
| VpcInstanceId |
string |
VPC インスタンス ID です。 |
pe-************* |
| ConnectionString |
string |
接続文字列。 |
********.rwlb.polardb-pg-public.rds.aliyuncs.com |
| IPAddress |
string |
IP アドレス。 |
192.***.***.*** |
| NetType |
string |
ネットワークタイプ。 有効な値は次のとおりです:
|
Private |
| SccMode |
string |
ノードでグローバル整合性 (パフォーマンス専有型モード) が有効になっているかどうかを示します。 有効な値:
|
on |
| EndpointConfig |
string |
クラスターエンドポイントの詳細設定。
|
{\"DistributedTransaction\":\"off\",\"ConsistLevel\":\"0\",\"LoadBalanceStrategy\":\"load\",\"MasterAcceptReads\":\"on\"} |
例
成功レスポンス
JSONJSON
{
"RequestId": "2DC120BF-6EBA-4C63-BE99-B09F9E******",
"Items": [
{
"DBEndpointId": "pe-*************",
"PolarSccTimeoutAction": "0",
"DBClusterId": "pc-bp1s826a1up******",
"Nodes": "pi-***************,pi-***************",
"ReadWriteMode": "ReadOnly",
"DBEndpointDescription": "test",
"PolarSccWaitTimeout": "100",
"NodeWithRoles": "Reader1",
"AutoAddNewNodes": "Enable",
"EndpointType": "Custom",
"AddressItems": [
{
"DashboardUsed": true,
"PrivateZoneConnectionString": "***.***.**.com",
"VPCId": "vpc-***************",
"VSwitchId": "vsw-************",
"Port": "1521",
"VpcInstanceId": "pe-*************",
"ConnectionString": "********.rwlb.polardb-pg-public.rds.aliyuncs.com",
"IPAddress": "192.***.***.***",
"NetType": "Private"
}
],
"SccMode": "on",
"EndpointConfig": "{\\\"DistributedTransaction\\\":\\\"off\\\",\\\"ConsistLevel\\\":\\\"0\\\",\\\"LoadBalanceStrategy\\\":\\\"load\\\",\\\"MasterAcceptReads\\\":\\\"on\\\"}"
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。