Enables or configures DAS Enterprise Edition for a database instance.
Operation description
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
hdm:ModifySqlLogConfig | update | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
InstanceId | string | Yes | The ID of the database instance. | |
Enable | boolean | No | Specifies whether to enable DAS Enterprise Edition.
Note This parameter is required to enable DAS Enterprise Edition. By default, the latest supported version is enabled. | |
RequestEnable | boolean | No | Specifies whether to enable SQL Explorer.
Note This parameter is required only if you enable DAS Enterprise Edition V3. | |
Retention | integer | No | The total data storage duration, in days. Valid values:
Note If you enable DAS Enterprise Edition V3, set this parameter to 30 or greater. | |
HotRetention | integer | No | The storage duration for hot data, in days. Valid values are integers from 1 to 7. Note This parameter is required only if you enable DAS Enterprise Edition V3. | |
| Filters | array<object> | No | This parameter is reserved. | |
object | No | This parameter is reserved. | ||
Key | string | No | This parameter is reserved. | |
Value | string | No | This parameter is reserved. | |
EnableAudit | boolean | No | Specifies whether to enable security audit. |
Response elements
Element | Type | Description | Example |
object | |||
Code | string | The status code returned. | |
Message | string | The response message. Note If the request is successful, Successful is returned. If the request fails, an error message is returned. | |
RequestId | string | The ID of the request. | |
Success | string | Indicates whether the request was successful.
| |
| Data | object | The data returned. | |
SqlLogVisibleTime | integer | The time when DAS Enterprise Edition was enabled. This is a UNIX timestamp in milliseconds. | |
RequestStopTime | integer | The expiration time of DAS Enterprise Edition V1. This is a UNIX timestamp in milliseconds. | |
CollectorVersion | string | The version of the Database Collector.
| |
SupportVersion | string | The latest supported version of DAS Enterprise Edition.
| |
ColdRetention | integer | The storage duration for cold data, in days. This value is calculated using the formula: | |
SqlLogEnable | boolean | Indicates whether DAS Enterprise Edition is enabled.
| |
Retention | integer | The total data storage duration, in days. | |
HotRetention | integer | The storage duration for hot data, in days. | |
RequestEnable | boolean | Indicates whether SQL Explorer is enabled.
| |
Version | string | The current version of DAS Enterprise Edition.
| |
RequestStartTime | integer | The time when SQL Explorer was enabled. This is a UNIX timestamp in milliseconds. | |
HotEnable | boolean | Indicates whether hot data storage is enabled.
| |
HotStartTime | integer | The time when hot data storage was enabled. This is a UNIX timestamp in milliseconds. | |
ColdEnable | boolean | Indicates whether cold data storage is enabled.
| |
ColdStartTime | integer | The time when cold data storage was enabled. This is a UNIX timestamp in milliseconds. | |
SqlLogState | string | The data migration status.
| |
LogFilter | string | This parameter is reserved. | |
SqlLogSource | string |
Examples
Success response
JSON format
{
"Code": "",
"Message": "",
"RequestId": "",
"Success": "",
"Data": {
"SqlLogVisibleTime": 0,
"RequestStopTime": 0,
"CollectorVersion": "",
"SupportVersion": "",
"ColdRetention": 0,
"SqlLogEnable": true,
"Retention": 0,
"HotRetention": 0,
"RequestEnable": true,
"Version": "",
"RequestStartTime": 0,
"HotEnable": true,
"HotStartTime": 0,
"ColdEnable": true,
"ColdStartTime": 0,
"SqlLogState": "",
"LogFilter": "",
"SqlLogSource": ""
}
}Error codes
HTTP status code | Error code | Error message | Description |
400 | InvalidParams | The request parameters are invalid. | |
403 | NoPermission | You are not authorized to do this action. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.