Queries the state of the PolarDB for AI feature.

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 DescribeAITaskStatus

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

RegionId String No cn-hangzhou

The region ID of the cluster.

DBClusterId String Yes pc-xxxxxxxxxx

The ID of the cluster.

Response parameters

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

The ID of the request.

Status String 1

The state of the PolarDB for AI feature. Valid values:

  • 1: The feature is enabled.
  • 2: The feature is disabled.
DBClusterId String pc-xxxxxxxxxx

The ID of the cluster.

StatusName String Disabled

The state description of the PolarDB for AI feature.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=DescribeAITaskStatus
&RegionId=cn-hangzhou
&DBClusterId=pc-xxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

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

<DescribeAITaskStatusResponse>
    <RequestId>9B7BFB11-C077-4FE3-B051-F69CEB******</RequestId>
    <Status>1</Status>
    <DBClusterId>pc-xxxxxxxxxx</DBClusterId>
    <StatusName> Disabled </StatusName>
</DescribeAITaskStatusResponse>

JSON format

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

{
  "RequestId" : "9B7BFB11-C077-4FE3-B051-F69CEB******",
  "Status" : "1",
  "DBClusterId" : "pc-xxxxxxxxxx",
  "StatusName" : "Disabled"
}

Error codes

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