Retrieves the status of the PolarDB for AI feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeAITaskStatus |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-xxxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| DBClusterId |
string |
The cluster ID. |
pc-xxxxxxxxxx |
| RequestId |
string |
The request ID. |
9B7BFB11-C077-4FE3-B051-F69CEB****** |
| Status |
string |
The status of the PolarDB for AI feature. Valid values:
|
1 |
| StatusName |
string |
A description of the feature status. |
关闭状态 |
| AccountName |
string |
The most recently configured account name. |
testacc |
Examples
Success response
JSON format
{
"DBClusterId": "pc-xxxxxxxxxx",
"RequestId": "9B7BFB11-C077-4FE3-B051-F69CEB******",
"Status": "1",
"StatusName": "关闭状态",
"AccountName": "testacc"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CallDB4AI.Error | Call db4ai api error. | An error occurred when the DB4AI API is called |
| 404 | InvalidDBInstance.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.