WebNIC RESTFUL v2
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Zone Record Template
  • 📝 Update History
  • Zone
    • Get Domain Zone
      GET
    • Add Domain Zone to NS Subscription
      POST
    • Get Domain Zone NS Subscription
      GET
    • Search Domain Zones
      GET
    • Delete Domain Zone
      DELETE
    • Get Domain Zone Statistics
      GET
    • Get Premium Subscription Statistics
      GET
  • Zone Record
    • Get Basic Record Nameservers
      GET
    • Get Subscription Record Nameservers
      GET
    • Get Zone Records
      GET
    • Get Supported Record Types
      GET
    • Save Zone Record
      POST
    • Remove Zone Subscription Record
      POST
    • Replace Zone Subscription Record
      POST
    • Delete Zone Record
      DELETE
    • Delete Zone Subscription Record
      DELETE
    • Detele Basic Zone Record
      DELETE
  • Zone Forwarding
    • Get Zone Url Forwardings
      GET
    • Add Zone Url Forwarding
      POST
    • Remove Zone Url Forwarding
      DELETE
    • Get Zone Email Forwardings
      GET
    • Add Zone Email Forwarding
      POST
    • Remove Zone Email Forwarding
      DELETE
  • Zone DNSSEC
    • Get Domain Zone DNSSEC Info
    • Enable Domain Zone DNSSEC
    • Disable Domain Zone DNSSEC
    • Get Domain Zone DNSSEC DNS Key Record
    • Get Domain Zone DNSSEC DS Record
  • Subscription Whitelabel
    • Get Whitelabel Nameserver
    • Save Whitelabel Nameservers
    • Remove Whitelabel Nameservers
  • Subscription
    • Add Domain Zone to Partner Subscription
    • Remove Domain Zone from Partner Subscription
    • Subscribe Domain Subscription
    • Get Domain Subscription
    • Get Domain Subscription by Id
    • Get Domain Subscription by Domain Name
    • Renew Domain Subscription
    • Unsubscribe Domain Subscription
    • Enable Domain Subscription Auto Renewal
    • Disable Domain Subscription Auto Renewal
  • Zone Record Template
    • Get Zone Subscription Record Templates
      GET
    • Create Zone Subscription Record Template
      POST
    • Get Zone Subscription Record Template by Id
      GET
    • Update Zone Subscription Record Template by Id
      PUT
    • Add Zone Subscription Record to Zone Subscription Record Template
      POST
    • Remove Zone Subscription Record from Zone Subscription Record Template
      POST
    • Delete Zone Subscription Record Template
      DELETE
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Zone Record Template

Get Zone Subscription Record Template by Id

OTE Environment
https://oteapi.webnic.cc
OTE Environment
https://oteapi.webnic.cc
GET
/dns/v2/zone/subscription/template/{templateId}
Last modified:2024-12-12 04:38:00
This endpoint allows you to get zone subscription record template by ID.
Response Data
FieldTypeDescription
idNumberTemplate ID
nameStringTemplate name
defaultTemplateBooleanIndicates whether the template is default template or not
recordsObject[]List of zone subscription record data object
dtcreateStringDate and time when the template was created
dtmodifyStringDate and time when the template was modified
Related Action
ActionURL
Update Zone Subscription Record Template by Id{{baseUrl}}/dns/v2/zone/subscription/template/:templateId
Add Zone Subscription Record to Zone Subscription Record Template{{baseUrl}}/dns/v2/zone/subscription/template/:templateId/add
Remove Zone Subscription Record from Zone Subscription Record Template{{baseUrl}}/dns/v2/zone/subscription/template/:templateId/remove
Delete Zone Subscription Record Template{{baseUrl}}/dns/v2/zone/subscription/template/:templateId

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Responses

🟢200OK
application/json
Body

🔴500Record Template Not Found
🔴500Record Template Not Under Current Partner
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://oteapi.webnic.cc/dns/v2/zone/subscription/template/73' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - OK
{
    "code": "1000",
    "message": "Command completed successfully.",
    "data": {
        "id": 73,
        "name": "Google Workspace",
        "defaultTemplate": true,
        "records": [
            {
                "type": "A",
                "name": "",
                "ttl": 3600,
                "rdatas": [
                    {
                        "value": "216.239.32.21",
                        "attributes": {}
                    },
                    {
                        "value": "216.239.34.21",
                        "attributes": {}
                    },
                    {
                        "value": "216.239.36.21",
                        "attributes": {}
                    },
                    {
                        "value": "216.239.38.21",
                        "attributes": {}
                    }
                ],
                "dnstableId": null,
                "remarks": null
            },
            {
                "type": "MX",
                "name": "",
                "ttl": 3600,
                "rdatas": [
                    {
                        "value": "ASPMX.L.GOOGLE.COM.",
                        "attributes": {}
                    },
                    {
                        "value": "ALT1.ASPMX.L.GOOGLE.COM.",
                        "attributes": {}
                    },
                    {
                        "value": "ALT2.ASPMX.L.GOOGLE.COM.",
                        "attributes": {}
                    },
                    {
                        "value": "ASPMX2.GOOGLEMAIL.COM.",
                        "attributes": {}
                    },
                    {
                        "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": "",
                "ttl": 3600,
                "rdatas": [
                    {
                        "value": "google-site-verification=6tTalLzrBXBO4Gy9700TAbpg2QTKzGYEuZ_Ls69jle8",
                        "attributes": {}
                    },
                    {
                        "value": "v=spf1 include:_spf.google.com ~all",
                        "attributes": {}
                    }
                ],
                "dnstableId": null,
                "remarks": null
            }
        ],
        "dtcreate": "2024-07-19T09:32:06+08:00",
        "dtmodify": "2024-07-25T09:32:10+08:00"
    }
}
Modified at 2024-12-12 04:38:00
Previous
Create Zone Subscription Record Template
Next
Update Zone Subscription Record Template by Id
Built with