Memeriksa apakah Instans Gudang Data Real-time tertentu mengizinkan eksekusi SQL melalui OpenAPI.
Deskripsi operasi
This operation checks if the "Allow SQL execution through OpenAPI" feature is enabled for a specified Hologres instance. Returns true if the feature is enabled, and false otherwise. If enabled, you can call the ExecuteStatement operation to execute SQL statements.
Coba sekarang
Test
RAM authorization
Sintaks permintaan
GET /api/v1/instances/{instanceId}/executeStatementEnabled HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
ID instans. |
hgpostcn-cn-zpr3426vm002 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
2C2ECDC1-FBAD-14A5-AA4A-96BC787FBDBC |
| data |
boolean |
Indicates whether SQL execution through OpenAPI is allowed ( |
true |
| success |
boolean |
Indicates whether the request was successful. |
True |
| errorCode |
string |
|
success |
| errorMessage |
string |
|
ok |
| httpStatusCode |
string |
The HTTP status code. |
200 |
Contoh
Respons sukses
JSONformat
{
"requestId": "2C2ECDC1-FBAD-14A5-AA4A-96BC787FBDBC",
"data": true,
"success": true,
"errorCode": "success",
"errorMessage": "ok",
"httpStatusCode": "200"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.