Mengkueri detail semua Global Database Networks (GDNs) di akun Anda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeGlobalDatabaseNetworks |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FilterRegion |
string |
No |
Hanya mengembalikan GDN yang mendukung pembuatan kluster sekunder di Wilayah yang ditentukan. |
cn-beijing |
| DBClusterId |
string |
No |
ID Kluster. Catatan
Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri ID semua Kluster di suatu Wilayah. |
pc-************** |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 30. Nilai valid:
|
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus lebih besar dari 0. Nilai default: 1. |
1 |
| GDNDescription |
string |
No |
Deskripsi GDN. Deskripsi harus memenuhi persyaratan berikut:
|
test |
| GDNId |
string |
No |
ID GDN. |
gdn-**************** |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of records. |
1 |
| PageRecordCount |
integer |
The number of records on the current page. |
30 |
| RequestId |
string |
The request ID. |
69A85BAF-1089-4CDF-A82F-0A140F****** |
| PageNumber |
integer |
The page number. |
1 |
| Items |
array<object> |
A list of GDNs. |
|
|
array<object> |
|||
| DBVersion |
string |
The database engine version. Only version 8.0 is supported. |
8.0 |
| GDNId |
string |
The GDN ID. |
gdn-**************** |
| CreateTime |
string |
The time at which the GDN was created, in UTC. The format is |
2020-03-23T05:46:54Z |
| GDNStatus |
string |
The status of the GDN. Valid values:
|
active |
| DBClusters |
array<object> |
A list of clusters in the GDN. |
|
|
object |
|||
| DBClusterId |
string |
The cluster ID. |
pc-**************** |
| Role |
string |
The role of the cluster. Valid values:
Catatan
A GDN contains one primary cluster and up to four secondary clusters. For more information, see Global Database Network (GDN). |
primary |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DBType |
string |
The database engine type. Only MySQL is supported. |
MySQL |
| GDNDescription |
string |
The GDN description. Requirements:
|
test |
| Labels |
object |
The tags applied to the GDN. |
|
| GDNVersion |
string |
2.0 |
Contoh
Respons sukses
JSONformat
{
"TotalRecordCount": 1,
"PageRecordCount": 30,
"RequestId": "69A85BAF-1089-4CDF-A82F-0A140F******",
"PageNumber": 1,
"Items": [
{
"DBVersion": "8.0",
"GDNId": "gdn-****************",
"CreateTime": "2020-03-23T05:46:54Z",
"GDNStatus": "active",
"DBClusters": [
{
"DBClusterId": "pc-****************",
"Role": "primary",
"RegionId": "cn-hangzhou"
}
],
"DBType": "MySQL",
"GDNDescription": "test",
"Labels": {
"GDNVersion": "2.0"
}
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. | |
| 400 | InvalidPageNumber.Malformed | The specified parameter PageNumber is not valid. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.