API Documents
Cancel
Contents
List All the Sub-domains Whose Type Is “A”
1. API Description
This API (Monitor.Listsubdomain) is used to list all the sub-domains whose type is “A”.
Domain name for API request:https://api.dnspod.com/Monitor.Listsubdomain
HTTP request method: POST
2. Request Parameters
The table below lists only the API request parameters. Common request parameters are required when the API is called. For more information, please see Common Request Parameters.
Parameter | Required | Description |
---|---|---|
domain OR domain_id | yes | Stand for the domain name and the domain id. You only need to and must set one of them. |
3. Response Codes
Only the response codes related to this API are listed below. For other response codes, please see Common Return Codes.
Response Code | Description |
---|---|
6 | Domain not exists. |
7 | Invalid domain id. |
8 | No records under this domain. |
4. Sample
curl -X POST https://api.dnspod.com/Monitor.Listsubdomain -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346'
The following is a sample response:
- JSON:
{
"status": {
"code": "1",
"message": "Action completed successful",
"created_at": "2014-06-05 10:12:24"
},
"domain": {
"id": "9",
"name": "dnspod.com",
"punycode": "dnspod.com",
"grade": "DP_Free",
"owner": "yizerowu@dnspod.com"
},
"subdomain": [
"@"
]
}
Last updated on 2020-12-23 08:59
Is the above content helpful to you?
Helpful
Unhelpful
Select an issue type
- Can't find what I need
- Update is not timely
- Difficult to understand
- Typo/invalid link
- Steps are incomplete
- Missing images/sample codes
View on Mobile Phone
Click to copy the link