DescribeDBClusterNetInfo API を呼び出して、ADB クラスターのネットワーク情報を取得します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
adb:DescribeDBClusterNetInfo |
get |
DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| DBClusterId |
string |
必須 |
クラスター ID。 |
am-bp1xxxxxxxx47 |
| RegionId |
string |
任意 |
クラスターが配置されているリージョン ID。 |
cn-hangzhou |
| Engine |
string |
任意 |
データベースエンジン。 |
AnalyticDB |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| ClusterNetworkType |
string |
クラスターのネットワークタイプ。 |
VPC |
| RequestId |
string |
リクエスト ID。 |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Items |
object |
||
| Address |
array<object> |
クラスターのリスト。 |
|
|
object |
|||
| VSwitchId |
string |
vSwitch ID。 説明
NetType が Public の場合、vSwitch ID は空になります。 |
vsw-xxxxxx |
| ConnectionString |
string |
クラスターのエンドポイント。 |
am-bpxxxxxxxx.ads.aliyuncs.com |
| NetType |
string |
ネットワークタイプ。有効な値:
|
VPC |
| Port |
string |
クラスターの接続ポート。 |
3306 |
| VPCId |
string |
VPC ID。 説明
NetType が Public の場合、VPC ID は空になります。 |
vpc-xxxxxxxxx |
| IPAddress |
string |
IP アドレス。 |
192.168.x.x |
| ConnectionStringPrefix |
string |
クラスターのエンドポイントプレフィックス。 |
am-bpxxxxxxxx89k51380 |
例
成功レスポンス
JSONJSON
{
"ClusterNetworkType": "VPC",
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Items": {
"Address": [
{
"VSwitchId": "vsw-xxxxxx",
"ConnectionString": "am-bpxxxxxxxx.ads.aliyuncs.com",
"NetType": "VPC",
"Port": "3306",
"VPCId": "vpc-xxxxxxxxx",
"IPAddress": "192.168.x.x",
"ConnectionStringPrefix": "am-bpxxxxxxxx89k51380"
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。