Mendapatkan informasi topologi basis data logis dan basis data fisik shard yang terkait.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetDBTopology |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LogicDbId |
integer |
Yes |
ID basis data logis. Catatan
Anda dapat memanggil operasi ListLogicDatabases untuk mendapatkan nilai parameter ini. |
134325 |
| Tid |
integer |
No |
ID tenant. Catatan
Anda dapat mengarahkan kursor ke gambar profil di sudut kanan atas sistem untuk melihat ID tenant. Untuk informasi lebih lanjut, lihat Lihat informasi tenant. |
43215 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
C5B8E84B-42B6-4374-AD5A-6264E1753378 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| ErrorMessage |
string |
Pesan kesalahan. |
UnknownError |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| DBTopology |
object |
Informasi topologi. |
|
| LogicDbId |
integer |
ID basis data logis. |
1234 |
| LogicDbName |
string |
Nama basis data logis. |
logic_db_test |
| SearchName |
string |
Nama pencarian basis data logis. |
logic_db_test |
| Alias |
string |
Alias basis data logis. |
logic_db_test |
| DbType |
string |
Tipe basis data. Untuk informasi lebih lanjut tentang nilai yang valid untuk parameter ini, lihat Parameter DbType. |
polardb |
| EnvType |
string |
Tipe lingkungan basis data logis. Nilai yang valid:
Catatan
Untuk informasi lebih lanjut, lihat Lingkungan instance. |
dev |
| DBTopologyInfoList |
array<object> |
Daftar informasi topologi basis data shard. |
|
|
object |
Informasi topologi basis data shard. |
||
| DbId |
integer |
The ID of the database for which the schema design is executed. |
423532 |
| SchemaName |
string |
The name of the logical database. Catatan
If the database is a PostgreSQL database, the value of this parameter is the name of the database schema. |
db_test@rm-xxx:3306 |
| CatalogName |
string |
The name of the catalog to which the database belongs. Catatan
If the database is a PostgreSQL database, the value of this parameter is the name of the database. |
def |
| SearchName |
string |
The name of the saved search. |
db_test |
| DbType |
string |
The type of the database engine. |
polardb |
| EnvType |
string |
The type of the environment to which the database belongs. Valid values:
|
dev |
| InstanceId |
integer |
The ID of the instance. The valid value is returned if you call the ListInstances operation. The instance ID is not the ID of the RDS instance. |
4325325 |
| RegionId |
string |
The ID of the region in which the instance resides. |
cn-hangzhou |
| InstanceResourceId |
string |
Instance resource ID. |
rm-xxx |
| InstanceSource |
string |
The source of the database instance. Valid values:
|
RDS |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C5B8E84B-42B6-4374-AD5A-6264E1753378",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"DBTopology": {
"LogicDbId": 1234,
"LogicDbName": "logic_db_test",
"SearchName": "logic_db_test",
"Alias": "logic_db_test",
"DbType": "polardb",
"EnvType": "dev",
"DBTopologyInfoList": [
{
"DbId": 423532,
"SchemaName": "db_test@rm-xxx:3306",
"CatalogName": "def",
"SearchName": "db_test",
"DbType": "polardb",
"EnvType": "dev",
"InstanceId": 4325325,
"RegionId": "cn-hangzhou",
"InstanceResourceId": "rm-xxx",
"InstanceSource": "RDS"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.