netenberg

: API

View the WSDL for the service. Click on an operation name to view it's details.

OPERATIONS

All output is formatted as JSON String, use php's json_decode() function to output as Array.

Input

accountHASHAPI Token (displayed in your account)
listType (int) 0 || 1 || 2
0 = all ips
1 = only ips for normal licenses
2 = only ips for vps licenses


Output

JSON String
[
    IP
]

EXAMPLE :
[
    "130.253.175.32",
    "140.99.16.206",
    "150.101.195.140"
]
		

Input

accountHASH API Token (displayed in your account)
listType (int) 0 || 1 || 2
0 = all ips
1 = only ips for normal licenses
2 = only ips for vps licenses


Output

JSON String
{
	"Licenses":
		[
			[ ipAddress, addedOn, isVPS, status ]
		]
}

EXAMPLE :
{
	"Licenses":
		[
			["111.22.222.151","2004-10-22 19:58:36","No","Active"],
			["111.22.222.152","2004-10-22 19:58:36","Yes","Inactive"],
			["111.22.222.151","2004-10-22 19:58:36","No","Inactive"]
		]
}
		

Input

accountHASH API Token (displayed in your account)
listType (int) 0 || 1 || 2
0 = all ips
1 = only ips for normal licenses
2 = only ips for vps licenses
active (int) 0 || 1
0 = inactive ips
1 = active ips


Output

JSON String
{
	"Licenses":
		[
			[ ipAddress, addedOn, status ]
		]
}

EXAMPLE :
{
	"Licenses":
		[
			["111.22.222.151","2004-10-22 19:58:36","No"],
			["111.22.222.152","2004-10-22 19:58:36","Yes"],
			["111.22.222.151","2004-10-22 19:58:36","No"],
			["111.22.222.152","2004-10-22 19:58:36","Yes"],
			["111.22.222.151","2004-10-22 19:58:36","No"]
		]
}

		

Input

accountHASH API Token (displayed in your account)
ip (string) e.g. 130.253.175.32


Output Success

JSON String
{
    "ipAddress":"130.253.175.32",
    "addedOn":"2010-03-01 00:00:00",
    "isVPS":"Yes",
    "status":"Active"
}
		

Output Error

JSON String
{
    "faultcode":1801,
    "fault":"The IP Address that you have specified does not exist."
}

Input

accountHASH API Token (displayed in your account)
ip (string) e.g. 130.253.175.32
type (int) 1 || 2
1 = normal ip
2 = vps ip


Output Success

JSON String
{
    "ip":"130.253.175.32",
    "id":"112461"
}

Output Error

JSON String
{
    "faultcode":1704,
    "fault":"The new IP Address that you have specified is not a valid cPanel IP Address."
}
JSON String
{
    "faultcode":1705,
    "fault":"The cPanel Code of the new IP Address that you have specified does not match the cPanel Code assigned to your account."
}
JSON String
{
    "faultcode":1703,
    "fault":"The IP Address that you have specified is not a valid VPS IP Address."
}
JSON String
{
    "faultcode":1804,
    "fault":"The IP Address that you have specified already exists."
}
JSON String
{
    "faultcode":1603,
    "fault":"You are not allowed to add any more IP Addresses because you have reached your IP Address quota."
}
JSON String
{
    "faultcode":1401,
    "fault":"You are trying to access the API from a server whose IP Address is not authorized."
}


JSON String
{
    "faultcode":1302,
    "fault":"You have specified an invalid hash."
}

Input

accountHASH API Token (displayed in your account)
ip (string) e.g. 130.253.175.32
new_ip (string) e.g. 130.253.175.33


Output Success

JSON String
{
    "ip":"130.253.175.32",
    "new_ip":"130.253.175.33"

}
		

Output Error

JSON String
{
    "faultcode":1704,
    "fault":"The new IP Address that you have specified is not a valid cPanel IP Address."
}
JSON String
{
    "faultcode":1705,
    "fault":"The new IP Address that you have specified is not a valid cPanel IP Address."
}
JSON String
{
    "faultcode":1703,
    "fault":"The IP Address that you have specified is not a valid VPS IP Address."
}
JSON String
{
    "faultcode":1804,
    "fault":"The IP Address that you have specified already exists."
}
JSON String
{
    "faultcode":1801,
    "fault":"The IP Address that you have specified does not exist."
}
JSON String
{
    "faultcode":1401,
    "fault":"You are trying to access the API from a server whose IP Address is not authorized."
}
JSON String
{
    "faultcode":1302,
    "fault":"You have specified an invalid hash."
}

Input

accountHASH API Token (displayed in your account)
ip_address (string) e.g. 130.253.175.32


Output Success

JSON String
{
    "ipAddress":"130.253.175.32",
    "addedOn":"2010-03-01 00:00:00",
    "isVPS":"No",
    "status":"Active"
}

Output Error

JSON String
{
    "faultcode":1801,
    "fault":"The IP Address that you have specified does not exist."
}

Input

accountHASH API Token (displayed in your account)
ip (string) e.g. 130.253.175.32


Output Success

JSON String
{
    "ipAddress":"130.253.175.32",
    "addedOn":"2010-03-01 00:00:00",
    "isVPS":"No",
    "status":"Inactive"
}
		

Output Error

JSON String
{
    "faultcode":1801,
    "fault":"The IP Address that you have specified does not exist."
}

Input

accountHASH API Token (displayed in your account)
ip (string) e.g. 130.253.175.32


Output Success

JSON String
{
    "ip":"130.253.175.32",
    "deleted":"Yes"
}

Output Error

JSON String
{
    "faultcode":1801,
    "fault":"The IP Address that you have specified does not exist."
}

Input

accountHASH API Token (displayed in your account)
id (int) e.g. 234


Output Success

JSON String
{
    "ticket_id":234,
    "type":"Support",
    "status":"open",
    "original_text":"Hi, we have a problem.",
    "date":"2016-10-26 06:18:29",
    "history":[{"reply_type":"Admin", "text": "Ok", "date": "2016-10-26 06:19:29"}]
}

Output Error

JSON String
{
    "faultcode":1900,
    "fault":"The ticket does not exist or is not accessible."
}

Input

accountHASH API Token (displayed in your account)
type (string) 'Support|Sales|Partnerships|Interface Improvements'
text (string) e.g. 'Hi, we have a problem! \nRegards'


Output Success

JSON String
{
    "ticket_id":234
}

Output Error

JSON String
{
    "faultcode":1901,
    "fault":"Something went wrong, please retry submitting the ticket."
}

Input

accountHASH API Token (displayed in your account)
id (int) e.g. 234
text (string) e.g. 'Hi, we have a new problem!'


Output Success

JSON String
{
    "ticket_id":234
}