Document Version: v1.9.4
VPS Cloud Sites—Next Generation Web Hosting
This guide outlines the basic principles of using the VPS.NET RESTful API to manage your account and cloud servers. If you have any questions about using this system, please don't hesitate to contact the VPS.NET support team.
This documentation is program language-independent and our examples will use command-line CURL to send the requests to VPS.NET
Gets the list of all registered domains on you account.
Checks the availability of the specified domain name.
{
"tlds": [ 'com', 'ca', 'us' ],
"domain_name": "yourdomain",
"suggestion": true
}
Where:
tlds
domain_name
suggestion
{
"domains":
{
"yourdomain.com": {"classkey": "domcno","status": "regthroughothers"},
"yourdomain.ca": {"classkey": "dotca","status": "available"},
"yourdomain.us": {"classkey": "domus","status": "regthroughothers"}
},
"suggestion":
{
"SaveYourDomain": {"com": "notavailable","us": "available"},
"Your-Blog-Domain": {"com": "available","us": "available"},
"YourBlogDomain": {"com": "notavailable","us": "available"},
"ChooseYourDomain": {"com": "notavailable","us": "available"},
"RegisterYourDomain": {"com": "notavailable","us": "available"},
"Your-Domain-Names": {"com": "notavailable","us": "available"},
"Save-Your-Domain": {"com": "available","us": "available"},
"EnterYourDomain": {"com": "notavailable","us": "available"},
"Choose-Your-Domain": {"com": "notavailable","us": "available"},
"Your-Domain": {"com": "notavailable","us": "available"}
}
}
{
"domains":
{
"yourdomain.com": "1",
"yourdomain.us": "1"
},
"auto_renew": 1,
"protect_privacy": 1,
"contact":
{
"full_name": "Full Name",
"company": "VPS",
"email_address": "name@vps.net",
"address1": "your address",
"address2": "",
"address3": "",
"city": "Chicago",
"state": "Illinois",
"country": "US",
"zip_code": "50000",
"phone_code": "17",
"phone_number": "5006070"
}
}
Where:
domains
auto_renew
protect_privacy
contact
Contact details:
full_name
company
email_address
address1
address2
address3
city
state
country
zip_code
phone_code
phone_number
Additional details depending on TLD:
"attr": "purpose"
"attr": "category"
{
"domains":
{
"yourdomain.com": "1",
"yourdomain.us": "1"
},
"auto_renew": 1,
"protect_privacy": 1,
"contact":
{
"full_name": "Full Name",
"company": "VPS",
"email_address": "name@vps.net",
"address1": "your address",
"address2": "",
"address3": "",
"city": "Chicago",
"state": "Illinois",
"country": "US",
"zip_code": "50000",
"phone_code": "17",
"phone_number": "5006070",
"attr":
{
"purpose": "P1",
"category": "C12"
}
}
}
"ca": "CPR"
"ca": "agree"
{
"domains":
{
"yourdomain.com": "1",
"yourdomain.ca": "1"
},
"auto_renew": 1,
"protect_privacy": 1,
"contact":
{
"full_name": "Full Name",
"company": "VPS",
"email_address": "name@vps.net",
"address1": "your address",
"address2": "",
"address3": "",
"city": "Chicago",
"state": "Illinois",
"country": "US",
"zip_code": "50000",
"phone_code": "17",
"phone_number": "5006070",
"ca":
{
"CPR": "PLT",
"agree": 1
}
}
}
{
"domain": "yourdomain.com",
"auth_code": "domain_secret_code",
"auto_renew": 1,
"protect_privacy": 1,
"contact":
{
"full_name": "Full Name",
"company": "VPS",
"email_address": "name@vps.net",
"address1": "your address",
"address2": "",
"address3": "",
"city": "Chicago",
"state": "Illinois",
"country": "US",
"zip_code": "50000",
"phone_code": "17",
"phone_number": "5006070"
}
}
Where:
domain
auth_code
auto_renew
protect_privacy
contact
See above for example output and field definitions
{
"contact":
{
"full_name": "Full Name",
"company": "VPS",
"email_address": "name@vps.net",
"address1": "your address",
"address2": "",
"address3": "",
"city": "Chicago",
"state": "Illinois",
"country": "US",
"zip_code": "50000",
"phone_code": "17",
"phone_number": "5006070"
}
}
Where:
{CONTACT_TYPE}
{
"ns":
[
"dns1.vps.net",
"dns2.vps.net"
]
}