Add IP

Description

Add a new IP address that will be whitelisted


 Parameters

Name Data Type Status Description
auth-id Integer Required Authentication parameter
auth-password String Required Authentication parameter
id Integer Required Sub-user's ID
ip String Required IP address

Return: Array with status and status description.


Possible errors (example)

When the authentication of the API user is not correct, any API request will fail with the following status and statusDescription:

{"status":"Failed","statusDescription": "Invalid authentication, incorrect user ID or password."}

If the sub-user's ID is invalid, the following status will be returned:

{"status":"Failed","statusDescription": "You don't have permission to do that."}

If the IP address is missing or incorrect, the following status will be returned:

{"status":"Failed","statusDescription": "Invalid IP address."}

Note: These are example errors in JSON format, and these are not the only errors that can be displayed.


 Example

URL JSON: https://api.cloudns.net/sub-users/add-ip.json
POST/GET: auth-id=0&auth-password=password&id=0&ip=1.2.3.5

URL XML: https://api.cloudns.net/sub-users/add-ip.xml
POST/GET: auth-id=0&auth-password=password&id=0&ip=1.2.3.5


Last modified: 2025-05-15
Cookies pomagają dostarczać nasze usługi, a używając ich zgadzasz się na korzystanie z plików cookie. Ucz się więcej