The PAHostedDomain APS Type is used to create and manage DNS zones for the hosted domains.
In this document:
The considered APS type (download
)
extends the HostedDomain,
HostService APS type(s) and looks as follows:
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
zoneId |
Integer |
Not Required Final |
Domain Zone id |
|
nameServers |
Array of String |
Not Required |
List of name servers |
|
dsRecord |
Not Required |
DSRecord DSRecord |
NAME |
TYPE |
REQUIRED |
DESCRIPTION |
---|---|---|---|
registrationInfo |
No |
Registration information related to this domain DomainRegistrationInfo |
|
account |
Yes |
Account related to this domain PAAccount |
DSRecord.
NAME |
TYPE |
ATTRIBUTES |
DEFAULT |
DESCRIPTION |
---|---|---|---|---|
algorithm |
Integer |
Not Required |
Algorithm. |
|
digestId |
Integer |
Not Required |
Dicest id |
|
digest |
String |
Not Required |
Digest. |
|
tag |
Integer |
Not Required |
Tag. |
Create a domain zone isv1.test
:
POST /aps/2/resources
"APS-Subscription-ID": "93959b89-365f-46e9-b838-8bb1f445cfa3"
{
"aps": {
"type": "http://parallels.com/aps/types/pa/dns/zone/1.1"
},
"name": "isv1.test",
"hosting": {
"aps": {
"link": "weak",
"id": "93959b89-365f-46e9-b838-8bb1f445cfa3"
}
}
}
A typical response looks as follows:
In the isv1.test
domain zone, create an A record for the VPS:
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: