グローバルデータベースネットワーク (GDN) の詳細を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeGlobalDatabaseNetwork |
get |
*クラスター
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| GDNId |
string |
必須 |
GDN ID。 |
gdn-bp1fttxsrmv***** |
| ResourceGroupId |
string |
任意 |
リソースグループの ID。 |
rg-************ |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| GDNStatus |
string |
GDN のステータス。有効な値:
|
active |
| Connections |
array<object> |
接続情報。 |
|
|
object |
|||
| ConnectionString |
string |
接続文字列。 |
abc.polardb.rds.aliyuncs.com |
| NetType |
string |
ネットワークタイプ。 |
Private |
| Port |
string |
接続文字列のポート番号。 |
3306 |
| DBVersion |
string |
データベースエンジンのバージョン。現在、バージョン 8.0 のみがサポートされています。 |
8.0 |
| RequestId |
string |
リクエストの ID。 |
67F2E75F-AE67-4FB2-821F-A81237EACD15 |
| GDNId |
string |
GDN ID。 |
gdn-bp1fttxsrmv***** |
| CreateTime |
string |
GDN が作成された時間。 時間は協定世界時 (UTC) の ISO 8601 フォーマット (フォーマット: YYYY-MM-DDTHH:mm:ssZ) です。 |
2020-02-24T11:57:54Z |
| DBType |
string |
データベースエンジンのタイプ。現在、MySQL のみがサポートされています。 |
MySQL |
| GDNDescription |
string |
GDN の説明。説明は次の要件を満たす必要があります。
|
GDN-fortest |
| GlobalDomainName |
string |
グローバルドメイン名。 |
[gdnid].gdn.rds.aliyuncs.com |
| DBClusters |
array<object> |
GDN 内のクラスター。 |
|
|
array<object> |
|||
| ReplicaLag |
string |
プライマリクラスターとセカンダリクラスター間のクロスリージョンレプリケーションの遅延。単位: 秒。 |
1 |
| ExpireTime |
string |
クラスターの有効期限。 説明
このパラメーターは、課金メソッドが Prepaid (サブスクリプション) のクラスターに対してのみ返されます。Postpaid (従量課金) のクラスターに対しては空の値が返されます。 時間は協定世界時 (UTC) の ISO 8601 フォーマット (フォーマット: YYYY-MM-DDTHH:mm:ssZ) です。 |
2020-11-14T16:00:00Z |
| Expired |
string |
クラスターが期限切れかどうかを示します。有効な値:
説明
このパラメーターは、課金メソッドが Prepaid (サブスクリプション) のクラスターに対してのみ返されます。 |
false |
| DBNodeClass |
string |
データベースノードのノードスペック。 |
polar.mysql.x4.large |
| PayType |
string |
課金メソッド。有効な値:
|
Prepaid |
| DBType |
string |
データベースエンジンのタイプ。現在、MySQL のみがサポートされています。 |
MySQL |
| RegionId |
string |
リージョンの ID。 |
cn-hangzhou |
| DBVersion |
string |
データベースエンジンのバージョン。現在、バージョン 8.0 のみがサポートされています。 |
8.0 |
| DBClusterId |
string |
GDN 内のクラスターの ID。 |
pc-wz9fb5nn44u1d**** |
| DBClusterStatus |
string |
GDN 内のクラスターのステータス。詳細については、「クラスターのステータス表」を参照してください。 |
Running |
| StorageUsed |
string |
ストレージの使用量。単位: バイト。 |
3012558848 |
| DBClusterDescription |
string |
クラスターの説明。 |
test |
| Category |
string |
プロダクトのエディション。有効な値: Normal: Cluster Edition Basic: Single Node Edition Archive: PolarDB X-Engine Edition NormalMultimaster: Multi-master Cluster Edition SENormal: PolarDB for MySQL Standard Edition 説明
|
Normal |
| Role |
string |
クラスターのロール。有効な値:
説明
GDN には、1 つのプライマリクラスターと最大 4 つのセカンダリクラスターが含まれます。 |
primary |
| ServerlessType |
string |
サーバーレスタイプ。値は AgileServerless に固定されています。 説明
このパラメーターは、サーバーレスクラスターに対してのみサポートされています。 |
AgileServerless |
| DBNodes |
array<object> |
データベースノードの詳細。 |
|
|
object |
|||
| DBNodeClass |
string |
データベースノードのノードスペック。 |
polar.mysql.x4.large |
| ZoneId |
string |
ゾーンの ID。 |
cn-hangzhou-i |
| CreationTime |
string |
データベースノードが作成された時間。 時間は協定世界時 (UTC) の ISO 8601 フォーマット (フォーマット: YYYY-MM-DDTHH:mm:ssZ) です。 |
2020-03-23T21:35:43Z |
| DBNodeRole |
string |
データベースノードのロール。有効な値:
|
Reader |
| DBNodeStatus |
string |
ノードのステータス。有効な値:
|
Running |
| FailoverPriority |
integer |
フェイルオーバー優先度。各ノードには、フェイルオーバー中にプライマリノードとして選出される可能性を決定するフェイルオーバー優先度があります。値が大きいほど優先度が高くなります。有効な値: 1~15。 |
1 |
| MaxConnections |
integer |
クラスターへの同時接続数の最大値。 |
8000 |
| MaxIOPS |
integer |
1 秒あたりの I/O リクエスト数 (IOPS) の最大値。 |
32000 |
| DBNodeId |
string |
データベースノードの ID。 |
pi-**************** |
| DBClusterId |
string |
クラスターの ID。 |
pc-bp1s826a1up****** |
| ResourceGroupId |
string |
リソースグループの ID。 |
rg-************ |
| Labels |
object |
プロパティラベル。 |
|
| GDNVersion |
string |
GDN のバージョン。 |
2.0 |
例
成功レスポンス
JSONJSON
{
"GDNStatus": "active",
"Connections": [
{
"ConnectionString": "abc.polardb.rds.aliyuncs.com",
"NetType": "Private",
"Port": "3306"
}
],
"DBVersion": "8.0",
"RequestId": "67F2E75F-AE67-4FB2-821F-A81237EACD15",
"GDNId": "gdn-bp1fttxsrmv*****",
"CreateTime": "2020-02-24T11:57:54Z",
"DBType": "MySQL",
"GDNDescription": "GDN-fortest",
"GlobalDomainName": "[gdnid].gdn.rds.aliyuncs.com",
"DBClusters": [
{
"ReplicaLag": "1",
"ExpireTime": "2020-11-14T16:00:00Z",
"Expired": "false",
"DBNodeClass": "polar.mysql.x4.large",
"PayType": "Prepaid",
"DBType": "MySQL",
"RegionId": "cn-hangzhou",
"DBVersion": "8.0",
"DBClusterId": "pc-wz9fb5nn44u1d****",
"DBClusterStatus": "Running",
"StorageUsed": "3012558848",
"DBClusterDescription": "test",
"Category": "Normal",
"Role": "primary",
"ServerlessType": "AgileServerless",
"DBNodes": [
{
"DBNodeClass": "polar.mysql.x4.large",
"ZoneId": "cn-hangzhou-i",
"CreationTime": "2020-03-23T21:35:43Z",
"DBNodeRole": "Reader",
"DBNodeStatus": "Running",
"FailoverPriority": 1,
"MaxConnections": 8000,
"MaxIOPS": 32000,
"DBNodeId": "pi-****************"
}
]
}
],
"DBClusterId": "pc-bp1s826a1up******",
"ResourceGroupId": "rg-************",
"Labels": {
"GDNVersion": "2.0"
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | GDN.NotFound | Failed to found GdnInstance by name:%s | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | 操作に失敗しました。指定されたクラスターインスタンス ID が存在しません。 |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。