PolarDB クラスターの詳細を照会します。これには、Resource Access Management (RAM) を介してアクセスが承認されているクラスターも含まれます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
polardb:DescribeDBClusters |
list |
*DBCluster
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
リージョン ID。 説明
DescribeRegions 操作を呼び出して、利用可能なリージョンを表示できます。 |
cn-hangzhou |
| DBClusterIds |
string |
任意 |
クラスター ID。 複数のクラスター ID はコンマ (,) で区切ります。 |
pc-**************** |
| DBClusterDescription |
string |
任意 |
クラスターの説明。 あいまい検索がサポートされています。 |
pc-**************** |
| ConnectionString |
string |
任意 |
データベースのエンドポイント。 |
********.rwlb.polardb-pg-public.rds.aliyuncs.com |
| DBClusterStatus |
string |
任意 |
クラスターのステータス。 詳細については、「クラスターの状態表」をご参照ください。 |
Running |
| DBType |
string |
任意 |
データベースのタイプ。 有効な値:
|
MySQL |
| DescribeType |
string |
任意 |
クエリモード。 値を `Simple` に設定すると、クラスターの基本的なメタデータのみが照会されます。 説明
このパラメーターを指定しない場合、クラスターの詳細情報が返されます。 |
Simple |
| DBVersion |
string |
任意 |
データベースのバージョン。 |
5.6 |
| RecentCreationInterval |
integer |
任意 |
過去 N 日間に作成されたクラスターをフィルターします。 N の値は 0 から 15 までの整数である必要があります。 |
7 |
| RecentExpirationInterval |
integer |
任意 |
N 日後に有効期限が切れるクラスターをフィルターします。 N の値は 0 から 15 までの整数である必要があります。 |
6 |
| Expired |
boolean |
任意 |
クラスターの有効期限が切れているかどうかを指定します。 有効な値:
|
true |
| PageSize |
integer |
任意 |
各ページに返すレコード数。 有効な値: 30、50、および 100。 デフォルト値: 30。 |
30 |
| PageNumber |
integer |
任意 |
ページ番号。 値は 0 より大きく、INTEGER データ型の最大値を超えない整数である必要があります。 デフォルト値: 1。 |
10 |
| ResourceGroupId |
string |
任意 |
リソースグループ ID。 |
rg-********** |
| Tag |
array<object> |
任意 |
タグのリスト。 |
|
|
object |
任意 |
|||
| Key |
string |
任意 |
タグのキー。 タグでクラスターをフィルターできます。 最大 20 個のタグペアを指定できます。 `Tag.n.Key` の `n` は、1 から始まる一意の連続した整数である必要があります。 `Tag.n.Key` の値は `Tag.n.Value` の値に対応します。 説明
タグキーは最大 64 文字で、 |
MySQL |
| Value |
string |
任意 |
タグキーの値。 説明
タグ値は最大 64 文字で、 |
5.6 |
| PayType |
string |
任意 |
課金方法。 有効な値:
|
Postpaid |
| DBNodeIds |
string |
任意 |
ノードの ID。 複数のノード ID を指定できます。 複数の ID はコンマ (,) で区切ります。 |
pi-*************** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| TotalRecordCount |
integer |
レコードの総数。 |
16 |
| PageRecordCount |
integer |
現在のページのクラスター数。 |
5 |
| RequestId |
string |
リクエスト ID。 |
9B7BFB11-C077-4FE3-B051-F69CEB****** |
| PageNumber |
integer |
ページ番号。 |
12 |
| Items |
object |
||
| DBCluster |
array<object> |
クラスターのリスト。 |
|
|
array<object> |
|||
| VpcId |
string |
VPC ID。 |
vpc-**************** |
| VswitchId |
string |
vSwitch ID。 |
vsw-*************** |
| ExpireTime |
string |
クラスターの有効期限。 説明
このパラメーターは、Prepaid (サブスクリプション) クラスターに対してのみ返されます。 Postpaid (従量課金) クラスターの場合、空の文字列が返されます。 |
2020-11-14T16:00:00Z |
| Expired |
string |
クラスターの有効期限が切れているかどうかを示します。 有効な値:
説明
このパラメーターは、Prepaid (サブスクリプション) クラスターに対してのみ返されます。 |
false |
| DBNodeNumber |
integer |
ノード数。 |
2 |
| CreateTime |
string |
クラスターが作成された時刻。 |
2020-08-14T05:58:42Z |
| PayType |
string |
課金方法。 有効な値:
|
Prepaid |
| StoragePayType |
string |
ストレージの課金方法。 有効な値:
|
Prepaid |
| ServerlessType |
string |
Serverless タイプ。 AgileServerless が返された場合、クラスターは Serverless クラスターです。 空の文字列が返された場合、クラスターは通常のクラスターです。 |
AgileServerless |
| StrictConsistency |
string |
マルチゾーンクラスターで強力なデータ整合性が有効になっているかどうかを示します。 有効な値:
|
ON |
| DBNodeClass |
string |
ノードの仕様。 |
polar.mysql.x4.large |
| Tags |
object |
||
| Tag |
array<object> |
タグのリスト。 |
|
|
object |
|||
| Key |
string |
タグキー。 |
MySQL |
| Value |
string |
タグの値。 |
5.6 |
| DBType |
string |
データベースのタイプ。 |
MySQL |
| LockMode |
string |
クラスターのロック状態。 有効な値:
|
Unlock |
| DBNodes |
object |
||
| DBNode |
array<object> |
ノードのリスト。 |
|
|
object |
|||
| DBNodeClass |
string |
ノードの仕様。 |
polar.mysql.x4.large |
| ZoneId |
string |
ゾーン ID。 |
cn-hangzhou-i |
| DBNodeRole |
string |
ノードのロール。 有効な値:
|
Reader |
| DBNodeId |
string |
ノード ID。 |
pi-**************** |
| RegionId |
string |
リージョン ID。 |
cn-hangzhou |
| Serverless |
string |
ノードで Serverless 機能が有効になっているかどうかを示します。
|
ON |
| ImciSwitch |
string |
列ストアインデックス機能が有効になっているかどうかを示します。 有効な値:
|
OFF |
| HotReplicaMode |
string |
ホットスタンバイ機能が有効になっているかどうかを示します。 有効な値:
|
OFF |
| RegionId |
string |
リージョン ID。 |
cn-hangzhou |
| DeletionLock |
integer |
クラスターの削除に対する保護ステータス。 有効な値:
説明
ロックされたクラスターは削除できません。 |
0 |
| DBVersion |
string |
データベースのバージョン。 |
5.6 |
| DBClusterId |
string |
クラスター ID。 |
pc-**************** |
| DBClusterStatus |
string |
クラスターのステータス。 |
Running |
| ResourceGroupId |
string |
リソースグループ ID。 |
rg-************ |
| SearchStorageUsed |
integer |
||
| StorageSpace |
integer |
サブスクリプションクラスターのストレージ容量。 単位: バイト。 |
50 |
| DBClusterNetworkType |
string |
クラスターのネットワークタイプ。 |
VPC |
| DBClusterDescription |
string |
クラスターの説明。 |
GDN-1 |
| ZoneId |
string |
ゾーン ID。 |
cn-hangzhou-i |
| Engine |
string |
クラスターエンジン。 |
POLARDB |
| Category |
string |
クラスターのエディション。 次のエディションがサポートされています:
|
Normal |
| AiType |
string |
AI ノードのステータス。 有効な値:
列挙値:
|
SearchNode |
| CpuCores |
string |
CPU コア数。 |
1 |
| MemorySize |
string |
ノードのメモリサイズ。 単位: MB。 |
2048 |
| RemoteMemorySize |
string |
リモートメモリサイズ。 単位: MB。 |
3612 |
| StorageType |
string |
Enterprise Edition クラスターのストレージタイプ。 有効な値:
Standard Edition クラスターのストレージタイプ。 有効な値:
|
essdautopl |
| HotStandbyCluster |
string |
ストレージホットスタンバイクラスター。 有効な値:
|
OFF |
| SubCategory |
string |
計算ノードの仕様タイプ。 有効な値:
|
Exclusive |
| StorageUsed |
integer |
クラスターによって使用されるストレージ容量。 単位: バイト。 |
3009413120 |
例
成功レスポンス
JSONJSON
{
"TotalRecordCount": 16,
"PageRecordCount": 5,
"RequestId": "9B7BFB11-C077-4FE3-B051-F69CEB******",
"PageNumber": 12,
"Items": {
"DBCluster": [
{
"VpcId": "vpc-****************",
"VswitchId": "vsw-***************",
"ExpireTime": "2020-11-14T16:00:00Z",
"Expired": "false",
"DBNodeNumber": 2,
"CreateTime": "2020-08-14T05:58:42Z",
"PayType": "Prepaid",
"StoragePayType": "Prepaid",
"ServerlessType": "AgileServerless",
"StrictConsistency": "ON",
"DBNodeClass": "polar.mysql.x4.large",
"Tags": {
"Tag": [
{
"Key": "MySQL",
"Value": "5.6"
}
]
},
"DBType": "MySQL",
"LockMode": "Unlock",
"DBNodes": {
"DBNode": [
{
"DBNodeClass": "polar.mysql.x4.large",
"ZoneId": "cn-hangzhou-i",
"DBNodeRole": "Reader",
"DBNodeId": "pi-****************",
"RegionId": "cn-hangzhou",
"Serverless": "ON",
"ImciSwitch": "OFF",
"HotReplicaMode": "OFF"
}
]
},
"RegionId": "cn-hangzhou",
"DeletionLock": 0,
"DBVersion": "5.6",
"DBClusterId": "pc-****************",
"DBClusterStatus": "Running",
"ResourceGroupId": "rg-************",
"SearchStorageUsed": 0,
"StorageSpace": 50,
"DBClusterNetworkType": "VPC",
"DBClusterDescription": "GDN-1",
"ZoneId": "cn-hangzhou-i",
"Engine": "POLARDB",
"Category": "Normal",
"AiType": "SearchNode",
"CpuCores": "1",
"MemorySize": "2048",
"RemoteMemorySize": "3612",
"StorageType": "essdautopl",
"HotStandbyCluster": "OFF",
"SubCategory": "Exclusive",
"StorageUsed": 3009413120
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed. | |
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. | |
| 400 | InvalidPageNumber.Malformed | The specified parameter PageNumber is not valid. | |
| 400 | InvalidRecentCreationInterval.Malformed | The specified parameter RecentCreationInterval is not valid. | |
| 400 | InvalidRecentExpirationInterval.Malformed | The specified parameter RecentExpirationInterval is not valid. | |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 404 | DBTypeOrDBVersion.Malformed | The specified DBType does not match DBVersion. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。