Enables the service account.
Operation description
Enables the OpenAPI Execute SQL feature for a specified Hologres instance. After this feature is enabled, RAM users who have the hologram:ExecuteStatement permission can execute SQL statements by calling the ExecuteStatement operation. You can call GetExecuteStatementEnabled to query the current status and call DisableExecuteStatement to disable this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hologram:EnableSupportAccount |
update |
*Instance
|
None | None |
Request syntax
POST /api/v1/instances/{instanceId}/supportAccount/enable HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
hgpostcn-cn-7mz2vmu30003 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| body |
object |
No |
The request body. |
|
| password |
string |
No |
The password. |
xxxx |
| expireTime |
string |
No |
The expiration time. Format: YYYY-MM-DD HH:mm:ss. |
2023-03-24 11:19:05 |
| enabled |
boolean |
No |
A deprecated parameter. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
AB71198A-2DB1-511B-AE4D-690BAA97F076 |
| Data |
string |
The returned result. |
true |
| Success |
boolean |
The request result, which indicates whether an exception occurred. This parameter is not related to the business logic. |
true |
| ErrorCode |
string |
The error code. |
null |
| ErrorMessage |
string |
The error message. |
null |
| HttpStatusCode |
string |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "AB71198A-2DB1-511B-AE4D-690BAA97F076",
"Data": "true",
"Success": true,
"ErrorCode": "null",
"ErrorMessage": "null",
"HttpStatusCode": "200"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.