Menjelaskan detail Global Database Network (GDN).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeGlobalDatabaseNetwork |
get |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GDNId |
string |
Yes |
ID GDN. |
gdn-bp1fttxsrmv***** |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| GDNStatus |
string |
Status GDN. Nilai yang valid:
|
active |
| Connections |
array<object> |
Informasi koneksi. |
|
|
object |
|||
| ConnectionString |
string |
String koneksi. |
abc.polardb.rds.aliyuncs.com |
| NetType |
string |
Jenis jaringan. |
Private |
| Port |
string |
Nomor port dari string koneksi. |
3306 |
| DBVersion |
string |
Versi mesin database. Hanya versi 8.0 yang didukung. |
8.0 |
| RequestId |
string |
ID permintaan. |
67F2E75F-AE67-4FB2-821F-A81237EACD15 |
| GDNId |
string |
ID GDN. |
gdn-bp1fttxsrmv***** |
| CreateTime |
string |
Waktu saat GDN dibuat. |
2020-02-24T11:57:54Z |
| DBType |
string |
Jenis mesin database. Hanya MySQL yang didukung. |
MySQL |
| GDNDescription |
string |
Deskripsi GDN. Deskripsi harus memenuhi persyaratan berikut:
|
GDN-fortest |
| GlobalDomainName |
string |
Nama domain global. |
[gdnid].gdn.rds.aliyuncs.com |
| DBClusters |
array<object> |
Kluster dalam GDN. |
|
|
array<object> |
|||
| ReplicaLag |
string |
Delay replikasi lintas wilayah antara kluster utama dan kluster sekunder. Satuan: detik. |
1 |
| ExpireTime |
string |
Waktu kedaluwarsa kluster. Catatan
Parameter ini hanya dikembalikan untuk kluster langganan. Nilai kosong dikembalikan untuk kluster bayar sesuai pemakaian. |
2020-11-14T16:00:00Z |
| Expired |
string |
Menunjukkan apakah kluster telah kedaluwarsa.
Catatan
Parameter ini hanya dikembalikan untuk kluster langganan. |
false |
| DBNodeClass |
string |
Spesifikasi node database. |
polar.mysql.x4.large |
| PayType |
string |
Metode penagihan:
|
Prepaid |
| DBType |
string |
Jenis mesin database. Hanya MySQL yang didukung. |
MySQL |
| RegionId |
string |
ID wilayah. |
cn-hangzhou |
| DBVersion |
string |
Versi mesin database. Hanya versi 8.0 yang didukung. |
8.0 |
| DBClusterId |
string |
ID kluster dalam GDN. |
pc-wz9fb5nn44u1d**** |
| DBClusterStatus |
string |
Status kluster dalam GDN. Untuk informasi selengkapnya, lihat Cluster states. |
Running |
| StorageUsed |
string |
Ruang storage space yang digunakan. Satuan: byte. |
3012558848 |
| DBClusterDescription |
string |
Deskripsi kluster. |
test |
| Category |
string |
Edisi kluster. Nilai yang valid: Normal: Edisi Kluster Basic: Edisi Single-node Archive: Edisi X-Engine NormalMultimaster: Edisi Kluster Multi-master SENormal: Edisi Standar Catatan
|
Normal |
| Role |
string |
Peran kluster. Nilai yang valid:
Catatan
GDN berisi satu kluster utama dan maksimal empat kluster sekunder. |
primary |
| ServerlessType |
string |
Jenis kluster Serverless. Nilainya tetap AgileServerless. Catatan
Parameter ini hanya didukung untuk kluster Serverless. |
AgileServerless |
| DBNodes |
array<object> |
Detail node database. |
|
|
object |
|||
| DBNodeClass |
string |
Spesifikasi node database. |
polar.mysql.x4.large |
| ZoneId |
string |
ID zona. |
cn-hangzhou-i |
| CreationTime |
string |
Waktu saat node database dibuat. |
2020-03-23T21:35:43Z |
| DBNodeRole |
string |
Peran node database. Nilai yang valid:
|
Reader |
| DBNodeStatus |
string |
Status node. Nilai yang valid:
|
Running |
| FailoverPriority |
integer |
Prioritas failover. Setiap node memiliki prioritas failover. Prioritas yang lebih tinggi menunjukkan kemungkinan lebih besar bahwa node tersebut dipilih sebagai node utama selama failover. Nilainya dapat berupa bilangan bulat dari 1 hingga 15. |
1 |
| MaxConnections |
integer |
Jumlah maksimum koneksi bersamaan ke kluster. |
8000 |
| MaxIOPS |
integer |
Jumlah maksimum operasi input/output per detik (IOPS). |
32000 |
| DBNodeId |
string |
ID node database. |
pi-**************** |
| DBClusterId |
string |
ID kluster. |
pc-bp1s826a1up****** |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-************ |
| Labels |
object |
||
| GDNVersion |
string |
Contoh
Respons sukses
JSONformat
{
"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": ""
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | GDN.NotFound | Failed to found GdnInstance by name:%s | |
| 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.