Enables Database Autonomy Service (DAS) Professional Edition for a specified instance.
- For information about supported database instances, see Usage notes on DAS Professional Edition.
- If you use an SDK to call the DAS service, you must set the region to cn-shanghai.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | EnableDasPro |
The operation that you want to perform. Set the value to EnableDasPro. |
UserId | String | No | 196278346919**** |
The ID of the Alibaba Cloud account that is used to create the database instance. Note This parameter is optional. The system can automatically obtain the account ID based
on the value of the InstanceId parameter when this operation is called.
|
InstanceId | String | Yes | rm-2ze8g2am97624**** |
The ID of the database instance. |
SqlRetention | Integer | No | 30 |
The storage duration of SQL Explorer data. Unit: days. Default value: 30.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7172BECE-588A-5961-8126-C216E16B**** |
The ID of the request. |
Message | String | Successful |
The message that is returned for the request. Note If the request is successful, Successful is returned. If the request fails, an error message that contains information such
as an error code is returned.
|
Synchro | String | None |
A reserved parameter. |
Data | String | None |
A reserved parameter. |
Code | String | 200 |
The HTTP status code. |
Success | String | true |
Indicates whether the request is successful. Valid values:
|
Examples
Sample requests
http(s)://das.cn-shanghai.aliyuncs.com/?Action=EnableDasPro
&UserId=196278346919****
&InstanceId=rm-2ze8g2am97624****
&SqlRetention=30
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<EnableDasProResponse>
<RequestId>7172BECE-588A-5961-8126-C216E16B****</RequestId>
<Message>Successful</Message>
<Code>200</Code>
<Success>true</Success>
</EnableDasProResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "7172BECE-588A-5961-8126-C216E16B****",
"Message" : "Successful",
"Code" : "200",
"Success" : "true"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParams | The request parameters are invalid. | The error message returned because the specified request parameters are invalid. |
For a list of error codes, visit the API Error Center.