Enables the PolarDB for AI feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:OpenAITask |
update |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-************ |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-**************** |
| Username |
string |
No |
The database account on which to enable the PolarDB for AI feature. |
testAccountName |
| Password |
string |
No |
The password of the database account. |
testPassword |
| NodeType |
string |
No |
The node type. Valid values:
|
DLNode |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
9B7BFB11-C077-4FE3-B051-F69CEB****** |
| TaskId |
string |
The task ID. |
53879cdb-9a00-428e-acaf-ff4cff****** |
Examples
Success response
JSON format
{
"RequestId": "9B7BFB11-C077-4FE3-B051-F69CEB******",
"TaskId": "53879cdb-9a00-428e-acaf-ff4cff******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissParameter.NodeType | The parameter nodeType is needed. | The NodeType parameter must be specified. |
| 400 | InvalidParameter.NodeType | The parameter NodeType is not valid. | The specified NodeType parameter is invalid. |
| 400 | CallDB4AI.Error | Call db4ai api error. | An error occurred when the DB4AI API is called |
| 500 | InvalidAccount.Malformed | The specified parameter account or password is not valid. | |
| 500 | InvalidAINode.NotFound | The AINode provided does not exist in our records. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.