You can call the DescribeAnalyticdbByPrimaryDBInstance operation to query the number of analytic instances that are associated with an ApsaraDB RDS for MySQL instance.


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 DescribeAnalyticdbByPrimaryDBInstance

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

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

DBInstanceId String Yes rm-uf6wjk5*******

The ID of the instance. You can call the DescribeDBInstances operation to query the ID of the instance.

Response parameters

Parameter Type Example Description
AnalyticDBCount Integer 0

The number of associated analytic instances.

RequestId String 77862BFF-ED59-552A-A2E8-692FEAFC9527

The ID of the request.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "77862BFF-ED59-552A-A2E8-692FEAFC9527",
  "AnalyticDBCount" : 0

Error codes

For a list of error codes, visit the API Error Center.