Checks whether a specified Hologres instance allows SQL execution through OpenAPI.
Operation description
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.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/instances/{instanceId}/executeStatementEnabled HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The ID of the instance. |
hgpostcn-cn-zpr3426vm002 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
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 |
Examples
Success response
JSON format
{
"requestId": "2C2ECDC1-FBAD-14A5-AA4A-96BC787FBDBC",
"data": true,
"success": true,
"errorCode": "success",
"errorMessage": "ok",
"httpStatusCode": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.