The PADnsRecord APS type is the base type implemented by the platform special DNS record APS types.
In this document:
The considered APS type (download
)
extends the DNSRecord APS type(s) and looks as follows:
{
"name": "PADnsRecord",
"id": "http://parallels.com/aps/types/pa/dns/record/1.0",
"apsVersion": "2.0",
"implements": [
"http://aps-standard.org/types/dns/record/1.0"
],
"properties": {
"recordId": {
"type": "integer",
"final": true
},
"sourceFQN": {
"type": "string",
"readonly": true
},
"data": {
"type": "string",
"readonly": true
}
}
}
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
recordId |
Integer |
Not Required Final |
Record ID. |
|
sourceFQN |
String |
Not Required Read Only |
Source fully qualified name. |
|
data |
String |
Not Required Read Only |
Data.. |
This APS type is inherited by multiple other APS types representing various DNS records.
The following example illustrates the creation of an A DNS record in the isv1.test
domain zone:
POST /aps/2/resources
"APS-Subscription-ID": "93959b89-365f-46e9-b838-8bb1f445cfa3"
{
"aps": {
"type":"http://parallels.com/aps/types/pa/dns/record/a/1.0"
},
"zone": "isv1.test",
"source": "vps1001.isv1.test.",
"address" : "10.10.10.111"
}
A typical response looks as follows:
HTTP/1.1 200 OK
{
"aps": {
"type": "http://parallels.com/aps/types/pa/dns/record/a/1.0",
"id": "d1d3800b-0f4f-48da-86a3-2244085cec5a",
"status": "aps:ready",
"revision": 4,
"modified": "2016-10-03T11:22:24Z",
"subscription": "93959b89-365f-46e9-b838-8bb1f445cfa3",
"package": {
"id": "e86ef200-5751-4c2c-b342-e65483ede6d0",
"href": "/aps/2/packages/e86ef200-5751-4c2c-b342-e65483ede6d0"
}
},
"RRState": "active",
"TTL": 0,
"address": "10.10.10.111",
"data": "10.10.10.111",
"recordId": 1,
"source": "vps1001",
"sourceFQN": "vps1001.isv1.test.",
"replacedBy": {
"aps": {
"link": "collection",
"href": "/aps/2/resources/d1d3800b-0f4f-48da-86a3-2244085cec5a/replacedBy"
}
},
"replaces": {
"aps": {
"link": "collection",
"href": "/aps/2/resources/d1d3800b-0f4f-48da-86a3-2244085cec5a/replaces"
}
},
"zone": {
"aps": {
"link": "strong",
"href": "/aps/2/resources/21947ac1-6509-4629-95c3-62151fd65a9d",
"id": "21947ac1-6509-4629-95c3-62151fd65a9d",
"subscription": "93959b89-365f-46e9-b838-8bb1f445cfa3"
}
}
}