API Name: getDBSize
Description: This api will get the current size a MSSQL database.
Method: HTTP POST/GET
API URL: https://resellerapi.smarterasp.net/getDBSize
Parameters:
Parameter_Name
|
Type
|
Length
|
Description |
apiid |
string |
9 |
This is your api id |
apikey |
guid |
48 |
This is your api key |
dbname
|
string |
2 to 255 |
This is the name of your database. |
dbserver |
string |
2 to 255
|
This is the server name of your database. Ex: SQL5001.Smarterasp.net |
Return
This function will return a size of the database in 'MB' and the 9 digit customer id OR error message.
{"result": {"status" : "true/false", "code" : "response_code", "response_message" : "message" , "data" : "customer_unique_id"}}
Error Code
G1000="Invalid Reseller Account/Authentication Error"
G1001="Invalid Hosting Account/Account Doesn't Belong To This Reseller"
G2000= [this is a general invalid parameter message]
G2001= [this is for other general error message]
S1001="Invalid DB Name or DB Server"
Article ID: 1679, Created: July 2, 2014 at 6:21 PM, Modified: July 2, 2014 at 6:21 PM