Enables the PolarDB for AI feature for a cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes OpenAITask

The operation that you want to perform. Set the value to OpenAITask.

RegionId String Yes cn-hangzhou

The region ID of the cluster.

DBClusterId String Yes pc-****************

The ID of the cluster.

Username String No testAccountName

The username used to access the database for which you want to enable the PolarDB for AI feature.

Password String No testPassword

The password used to access the database for which you want to enable the PolarDB for AI feature.

Response parameters

Parameter Type Example Description
RequestId String 9B7BFB11-C077-4FE3-B051-F69CEB******

The ID of the request.

TaskId String 53879cdb-9a00-428e-acaf-ff4cff******

The ID of the task for enabling the PolarDB for AI feature.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=OpenAITask
&RegionId=cn-hangzhou
&DBClusterId=pc-****************
&Username=testAccountName
&Password=testPassword
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<OpenAITaskResponse>
    <RequestId>9B7BFB11-C077-4FE3-B051-F69CEB******</RequestId>
    <TaskId>53879cdb-9a00-428e-acaf-ff4cff******</TaskId>
</OpenAITaskResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "9B7BFB11-C077-4FE3-B051-F69CEB******",
  "TaskId" : "53879cdb-9a00-428e-acaf-ff4cff******"
}

Error codes

HTTP status code Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified cluster ID does not exist in the current record.

For a list of error codes, see Service error codes.