All Products
Search
Document Center

Hologres:GetExecuteStatementEnabled

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

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) or not (false).

true

success

boolean

Indicates whether the request was successful.

True

errorCode

string

  • The error code that is returned if the request fails (when success is false).

  • This parameter is empty if the request is successful (when success is true).

success

errorMessage

string

  • The error message that is returned if the request fails (when success is false).

  • This parameter is empty if the request is successful (when success is true).

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.