域名
GET https://www.dunlv.com/api/domain-names/
curl --request GET \
--url 'https://www.dunlv.com/api/domain-names/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.dunlv.com/api/domain-names/' \
--header 'Authorization: Bearer {api_key}' \
参数 | 详情 | 描述 |
---|---|---|
page | 可选 整数 | 您希望获取结果的页码。默认值为 1 。 |
results_per_page | 可选 整数 | 每页的结果数量。允许值为:10 , 25 , 50 , 100 , 250 , 500 , 1000 。默认值为 25 。 |
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "AltumCode.Com",
"target": "altumcode.com",
"whois": {
"start_datetime": "2019-12-15 18:03:36",
"updated_datetime": "2020-05-24 15:37:15",
"end_datetime": "2022-12-15 18:03:36",
"registrar": "NAMECHEAP INC",
"nameservers": [
"ns1.digitalocean.com",
"ns2.digitalocean.com",
"ns3.digitalocean.com"
]
},
"whois_notifications": null,
"ssl": {
"organization": "Let's Encrypt",
"common_name": "R3",
"start_datetime": "2021-06-05 14:40:13",
"end_datetime": "2021-09-03 14:40:13"
},
"ssl_notifications": null,
"total_checks": 25,
"last_check_datetime": "2021-07-01 14:42:14",
"next_check_datetime": "2021-07-04 14:42:15",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-02-05 19:09:25"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://www.dunlv.com/api/domain-names?&page=1",
"last": "https://www.dunlv.com/api/domain-names?&page=1",
"next": null,
"prev": null,
"self": "https://www.dunlv.com/api/domain-names?&page=1"
}
}
GET https://www.dunlv.com/api/domain-names/{domain_name_id}
curl --request GET \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": 0,
"name": "AltumCode.Com",
"target": "altumcode.com",
"whois": {
"start_datetime": "2019-12-15 18:03:36",
"updated_datetime": "2020-05-24 15:37:15",
"end_datetime": "2022-12-15 18:03:36",
"registrar": "NAMECHEAP INC",
"nameservers": [
"ns1.digitalocean.com",
"ns2.digitalocean.com",
"ns3.digitalocean.com"
]
},
"whois_notifications": null,
"ssl": {
"organization": "Let's Encrypt",
"common_name": "R3",
"start_datetime": "2021-06-05 14:40:13",
"end_datetime": "2021-09-03 14:40:13"
},
"ssl_notifications": null,
"total_checks": 25,
"last_check_datetime": "2021-07-01 14:42:14",
"next_check_datetime": "2021-07-04 14:42:15",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-02-05 19:09:25"
}
}
POST https://www.dunlv.com/api/domain-names
参数 | 详情 | 描述 |
---|---|---|
name | 必需 字符串 | - |
target | 必需 字符串 | - |
project_id | 可选 整数 | - |
whois_notifications | 可选 数组 | 通知处理程序 ID |
whois_notifications_timing | 可选 整数 | 允许值:1 , 2 , 3 , 7 , 14 , 30 , 60 (天) |
ssl_notifications | 可选 数组 | 通知处理程序 ID |
ssl_notifications_timing | 可选 整数 | 允许值:1 , 2 , 3 , 7 , 14 , 30 , 60 (天) |
is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://www.dunlv.com/api/domain-names' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://www.dunlv.com/api/domain-names' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
{
"data": {
"id": 1
}
}
POST https://www.dunlv.com/api/domain-names/{domain_name_id}
参数 | 详情 | 描述 |
---|---|---|
name | 可选 字符串 | - |
target | 可选 字符串 | - |
project_id | 可选 整数 | - |
whois_notifications | 可选 数组 | 通知处理程序 ID |
whois_notifications_timing | 可选 整数 | 允许值:1 , 2 , 3 , 7 , 14 , 30 , 60 (天) |
ssl_notifications | 可选 数组 | 通知处理程序 ID |
ssl_notifications_timing | 可选 整数 | 允许值:1 , 2 , 3 , 7 , 14 , 30 , 60 (天) |
is_enabled | 可选 布尔值 | - |
curl --request POST \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
DELETE https://www.dunlv.com/api/domain-names/{domain_name_id}
curl --request DELETE \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.dunlv.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \