Mengambil informasi tentang instans SQL Khusus suatu Proyek, seperti jumlah unit komputasi (CU) dan apakah instans SQL Khusus diaktifkan secara default. Sebelum memanggil operasi ini, Anda harus membuat instans SQL Khusus dengan memanggil operasi CreateSqlInstance atau UpdateSqlInstance.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:GetSqlInstance |
none |
*Project
|
None | None |
Sintaks permintaan
GET /sqlinstance HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama Proyek. |
test-project |
Elemen respons
|
Element |
Type |
Description |
Example |
|
array |
Dedicated SQL instance |
||
|
object |
Dedicated SQL instance |
||
| name |
string |
The value is group1. This is an internal parameter that you can ignore. |
group1 |
| cu |
integer |
The maximum number of CUs that the Dedicated SQL version can use. A CU is a compute core that can be used for parallel processing when the Dedicated SQL version is running. |
2 |
| createTime |
integer |
The time when the configuration for the Dedicated SQL version was created. This is a UNIX timestamp. |
1710230272。Unix时间戳。 |
| updateTime |
integer |
The time when the configuration for the Dedicated SQL version was updated. This is a UNIX timestamp. |
1710230272 |
| useAsDefault |
boolean |
Indicates whether the Dedicated SQL version is enabled by default for the project. If this parameter is set to true, all query and analysis operations in the project, such as alerts and dashboards, use the Dedicated SQL version. |
true |
Contoh
Respons sukses
JSONformat
[
{
"name": "group1",
"cu": 2,
"createTime": 0,
"updateTime": 1710230272,
"useAsDefault": true
}
]
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.