Enables a support account.
Operation description
This operation lets you execute SQL statements on a specified Hologres instance through OpenAPI. After this feature is enabled, a RAM account with the hologram:ExecuteStatement permission can call the ExecuteStatement operation. You can call GetExecuteStatementEnabled to query the current status and DisableExecuteStatement to disable this feature.
Try it now
Test
RAM authorization
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. |
2023-03-24 11:19:05 |
| enabled |
boolean |
No |
This parameter is deprecated. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. |
AB71198A-2DB1-511B-AE4D-690BAA97F076 |
| Data |
string |
The result of the operation. |
true |
| Success |
boolean |
Indicates whether the API call succeeded. This is independent of the operation's result. |
true |
| ErrorCode |
string |
The error code that is returned if the request fails. |
null |
| ErrorMessage |
string |
The error message that is returned if the request fails. |
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.