| Field | Type | Description |
|---|---|---|
| name | String | (Required) Record name |
| type | String | (Required) Record type |
| 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) An object which stores additional key-value pairs for extra metadata related to the DNS record |
| remarks | String | (Optional) Additional remarks |
| Field | Type | Description |
|---|---|---|
| replaced | Boolean | Indicates whether the record is replaced or not |
| record | Object | Zone subsription record data object |
| ...type | String | Record type |
| ...name | String | Record name |
| ...ttl | Number | Indicates how often a DNS server will refresh the record (in millisecond) |
| ...rdatas | Object[] | List of rdata |
| ......value | String | Record value |
| ......attributes | Object | An object which stores additional key-value pairs for extra metadata related to the DNS record |
| ...dnstableId | Number | DNS table ID |
| ...remarks | String | Additional remarks |
| Action | URL |
|---|---|
| Get Zone Subscription Records | {{baseUrl}}/dns/v2/zone/:zone/subscription/records |
curl --location --request POST 'https://oteapi.webnic.cc/dns/v2/zone/captainmarvel3.com.mm/subscription/record/replace' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "www",
"type": "A",
"rdatas": [
{
"value": "1.1.1.4"
}
]
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"replaced": true,
"record": {
"type": "A",
"name": "www",
"ttl": 600,
"rdatas": [
{
"value": "1.1.1.4",
"attributes": {}
}
],
"dnstableId": 1318,
"remarks": "any remarks"
}
}
}