Mengambil detail untuk 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 dari Global Database Network (GDN). |
gdn-bp1fttxsrmv***** |
| ResourceGroupId |
string |
No |
ID grup sumber daya. |
rg-************ |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| GDNStatus |
string |
Status dari Global Database Network (GDN). Nilai yang valid:
|
active |
| Connections |
array<object> |
Detail 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. Harus memenuhi persyaratan berikut:
|
GDN-fortest |
| GlobalDomainName |
string |
Nama domain global. |
[gdnid].gdn.rds.aliyuncs.com |
| DBClusters |
array<object> |
Cluster-cluster di GDN. |
|
|
array<object> |
|||
| ReplicaLag |
string |
Replication lag untuk replikasi lintas-region antara cluster primer dan cluster standby. Satuan: detik. |
1 |
| ExpireTime |
string |
Waktu kedaluwarsa cluster. Catatan
Parameter ini hanya dikembalikan untuk cluster langganan (subscription). String kosong dikembalikan untuk cluster pay-as-you-go. |
2020-11-14T16:00:00Z |
| Expired |
string |
Menunjukkan apakah cluster telah kedaluwarsa. Nilai yang valid:
Catatan
Parameter ini hanya dikembalikan untuk cluster langganan. |
false |
| DBNodeClass |
string |
Jenis node. |
polar.mysql.x4.large |
| PayType |
string |
Metode penagihan cluster. Nilai yang valid:
|
Prepaid |
| DBType |
string |
Mesin database. Hanya MySQL yang didukung. |
MySQL |
| RegionId |
string |
ID region cluster. |
cn-hangzhou |
| DBVersion |
string |
Versi mesin database. Hanya versi 8.0 yang didukung. |
8.0 |
| DBClusterId |
string |
ID cluster. |
pc-wz9fb5nn44u1d**** |
| DBClusterStatus |
string |
Status cluster. Untuk informasi lebih lanjut, lihat Status cluster. |
Running |
| StorageUsed |
string |
Jumlah ruang penyimpanan yang digunakan. Satuan: byte. |
3012558848 |
| DBClusterDescription |
string |
Deskripsi cluster. |
test |
| Category |
string |
Edisi cluster. Nilai yang valid:
Catatan
|
Normal |
| Role |
string |
Peran cluster di GDN. Nilai yang valid:
Catatan
Sebuah GDN terdiri dari satu cluster primer dan hingga empat cluster standby. |
primary |
| ServerlessType |
string |
Jenis cluster Serverless. Nilainya tetap sebagai Catatan
Parameter ini hanya dikembalikan untuk cluster Serverless. |
AgileServerless |
| DBNodes |
array<object> |
Detail node-node di cluster. |
|
|
object |
|||
| DBNodeClass |
string |
The specifications of the node. |
polar.mysql.x4.large |
| ZoneId |
string |
The zone ID of the node. |
cn-hangzhou-i |
| CreationTime |
string |
The time when the node was created. |
2020-03-23T21:35:43Z |
| DBNodeRole |
string |
The role of the node. Valid values:
|
Reader |
| DBNodeStatus |
string |
The status of the node. Valid values:
|
Running |
| FailoverPriority |
integer |
The failover priority. Each node is assigned a failover priority. The failover priority determines which node is selected as the primary node when a failover occurs. A larger value indicates a higher priority. Valid values: 1 to 15. |
1 |
| MaxConnections |
integer |
The maximum number of concurrent connections. |
8000 |
| MaxIOPS |
integer |
The maximum input/output operations per second (IOPS). |
32000 |
| DBNodeId |
string |
The node ID. |
pi-**************** |
| DBClusterId |
string |
ID cluster. |
pc-bp1s826a1up****** |
| ResourceGroupId |
string |
ID grup sumber daya. |
rg-************ |
| Labels |
object |
Label-label GDN. |
|
| GDNVersion |
string |
Versi GDN. |
2.0 |
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": "2.0"
}
}
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.