Enables Database Autonomy Service (DAS) Professional Edition for a specified instance.

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.

  • 30
  • 180
  • 365
  • 1095
  • 1825

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:

  • true
  • false


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "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.