What is the NewServers API?
Utilizing an https request with an XML response, we integrate with custom and third-party software and control panels, providing server provisioning, management, monitoring, and information retrieval from our systems.
Who would benefit the most from the API?
API access is offered to all NewServers clients and is especially useful to companies like:
- Hosting Resellers
- SaaS Integrators
- VARS and clients with integrated IT management tools and systems
- Gaming Providers
- MMOG companies
- Clients with current server management tools
- Managed Services Firms
API Function Definitions
Parameters:
username - your username
password - your password
config - the hardware configuration of the server
os - the operating system installed on the server
Available config:
small
medium
Available operating systems:
Win2003
Centos5.1
Example request:
https://noc.newservers.com/api/addServer?username=you&password=yourpass&config=small&os=centos5.1
Example response:
true
1205
Parameters:
username - your username
password - your password
serverId - the id of the server you wish to cancel
Example request:
https://noc.newservers.com/api/cancelServer?username=you&password=yourpass&serverId=1225
Example response:
true
1225
Parameters:
username - your username
password - your password
Example request:
https://noc.newservers.com/api/listPlans?username=you&password=yourpass
Example response:
1
Linux CentOS 5.1 64 bit
Xeon 2.8 1GB Ram 73GB 10,000 RPM HD
0.11
Centos5.1
small
2
Win2k3 Standard 64 bit
Xeon 2.8 1GB Ram 73GB 10,000 RPM HD
0.13
Win2003
small
Parameters:
Username - your username
Password - your password
Example request:
https://noc.newservers.com/api/listActiveServers?username=you&password=yourpass
Example response:
true
1225
Parameters:
username - your username
password - your password
serverId - the id of the server whose information you wish to retrieve
Example request:
https://noc.newservers.com/api/getServerInfo?username=you&password=yourpass&serverId=1225
Example response:
1225
server2323
my db server
204.10.111.97
64.187.123.89
Admin for users
administrator
testpass
login for users
subusers
tespass2
Parameters:
Username - your username
Password - your password
serverId - the id of the server you wish to reboot
Example request:
https://noc.newservers.com/api/rebootServer?username=you&password=yourpass&serverId=1225
Example response:
true
1225
Parameters:
Username - your username
Password - your password
serverId - the id of the server you wish to get bandwidth usage
dateFrom - 2007-02-01, if omitted defaults to current months usage.
dateTo - 2007-02-28
Example request:
https://noc.newservers.com/api/getServerBandwidth?username=you&password=yourpass&serverId=1225&dateFrom=2007-02-01&dateTo=2007-02-28
Example response:
true
50
|
 |