| Field | Type | Description |
|---|---|---|
| type | String | (Required) Record type |
| name | String | (Required) Record name |
| ttl | Number | (Optional) Indicates how often a DNS server will refresh the record (in millisecond) |
| rdatas | Object[] | (Required) List of rdata |
| value | String | (Required) Record value |
| attributes | Object | (Optional) Attributes |
| remarks | String | (Optional) Additional remarks |
| Field | Type | Description |
|---|---|---|
| id | Number | Template ID |
| name | String | Template name |
| defaultTemplate | Boolean | Indicates whether the template is default template or not |
| records | Object[] | List of zone subscription record data object |
| dtcreate | String | Date and time when the template was created |
| dtmodify | String | Date and time when the template was modified |
| Action | URL |
|---|---|
| Get Zone Subscription Record Templates | {{baseUrl}}/dns/v2/zone/subscription/templates |
| Get Zone Subscription Record Template by Id | {{baseUrl}}/dns/v2/zone/subscription/template/:templateId |
curl --location --request POST 'https://oteapi.webnic.cc/dns/v2/zone/subscription/template/73/remove' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "TXT",
"name": "_acme-challenge",
"rdatas": [
{
"value": "v=spf1 include:_spf.google.com ~all"
}
]
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"id": 73,
"name": "Google Workspace",
"defaultTemplate": true,
"records": [
{
"type": "A",
"name": "www",
"ttl": 3600,
"rdatas": [
{
"value": "216.239.32.21",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "A",
"name": "blog",
"ttl": 3600,
"rdatas": [
{
"value": "216.239.34.21",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "A",
"name": "mail",
"ttl": 3600,
"rdatas": [
{
"value": "216.239.36.21",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "A",
"name": "shop",
"ttl": 3600,
"rdatas": [
{
"value": "216.239.38.21",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "MX",
"name": "mail",
"ttl": 3600,
"rdatas": [
{
"value": "ASPMX.L.GOOGLE.COM.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "MX",
"name": "smtp",
"ttl": 3600,
"rdatas": [
{
"value": "ALT1.ASPMX.L.GOOGLE.COM.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "MX",
"name": "pop",
"ttl": 3600,
"rdatas": [
{
"value": "ALT2.ASPMX.L.GOOGLE.COM.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "MX",
"name": "imap",
"ttl": 3600,
"rdatas": [
{
"value": "ASPMX2.GOOGLEMAIL.COM.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "MX",
"name": "mx1",
"ttl": 3600,
"rdatas": [
{
"value": "ASPMX3.GOOGLEMAIL.COM.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "CNAME",
"name": "mail",
"ttl": 3600,
"rdatas": [
{
"value": "ghs.googlehosted.com.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "CNAME",
"name": "www",
"ttl": 3600,
"rdatas": [
{
"value": "ghs.googlehosted.com.",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "TXT",
"name": "_spf",
"ttl": 3600,
"rdatas": [
{
"value": "v=spf1 include:_spf.google.com ~all",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
},
{
"type": "TXT",
"name": "_dmarc",
"ttl": 3600,
"rdatas": [
{
"value": "google-site-verification=6tTalLzrBXBO4Gy9700TAbpg2QTKzGYEuZ_Ls69jle8",
"attributes": {}
}
],
"dnstableId": null,
"remarks": null
}
],
"dtcreate": "2024-07-19T09:32:06+08:00",
"dtmodify": "2024-07-19T10:10:47+08:00"
}
}