Queries the number of domain assets.


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 DescribeDomainCount

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

SourceIp String No 1.2.XX.XX

The source IP address of the request.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
RootDomainsCount Integer 5

The number of root domains.

RequestId String C286491D-4A2F-589A-B63B-D2AD3DA9BD71

The ID of the request, which is used to locate and troubleshoot issues.

SubDomainsCount Integer 5

The number of subdomains.

TotalDomainsCount Integer 10

The total number of entries returned.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RootDomainsCount" : 5,
  "RequestId" : "C286491D-4A2F-589A-B63B-D2AD3DA9BD71",
  "SubDomainsCount" : 5,
  "TotalDomainsCount" : 10

Error codes

HTTP status code Error code Error message Description
400 NoPermission no permission The error message returned because you do not have access permissions on the service.
500 ServerError ServerError The error message returned because a server error occurred.

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