AddNewIPAddressRange

Description

This method adds an IP address range to an account or a user.

Formal Definition

https://ws.interfax.net/admin.asmx?op=AddNewIPAddressRange

Input

Name Type Comments
UserID String The name of the user authenticating to the API
Password String The password for the username
type String Specifies whether to add the IP address range for an account (“Account”) or a user (“User”)
name String The name associated with the IP address range to be added
ipFrom String The starting IP address of the range to be added
ipTo String The ending IP address of the range to be added

Output

Name Type Comments
AddNewIPAddressRangeResult Integer Returns 0 for success, otherwise an error code indicating what went wrong; see the Error Codes, below.

Error Codes

Value Description
-150 Internal System Error. An exception occurs at any point in the execution of the web service method.
-404 The specified entity type is invalid.
-405 The specified name is invalid or empty.
-1003 Authentication error: the user cannot be authenticated when either the username or the password is incorrect OR any other last error occurred when authenticating the user.
-3058 The specified IP address range is invalid.