Queries the number of domain assets.
Debugging
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeDomainCount
&SourceIp=1.2.XX.XX
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDomainCountResponse>
<RootDomainsCount>5</RootDomainsCount>
<RequestId>C286491D-4A2F-589A-B63B-D2AD3DA9BD71</RequestId>
<SubDomainsCount>5</SubDomainsCount>
<TotalDomainsCount>10</TotalDomainsCount>
</DescribeDomainCountResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.