add_ip – add an IP address to the list of allowed or denied IP addresses.

April 17, 2024

ID 206495

add_ip(Auth, client_id, locale_id, resource_id, type, ip)

Deprecated since version 6.17.0: Use 'bwl_add_ipranges' instead.

Description: add an IP address to the list of allowed or denied IP addresses.

Input parameters:

client_id (int) – customer ID (integer from 1 to 4 294 967 295).

locale_id (int) – locale ID (10 for English, 77 for Russian).

resource_id (int) – Protected resource ID (integer from 1 to 4 294 967 295), or -1 for all Protected resources of the Customer.

type (str) – type of list ('DENY' – denylist, 'ALLOW' – allowlist).

ip (str) – IP address (from 0.0.0.0 to 255.255.255.255).

Result:

value (str) – '0', or Soap Fault if an error occurs.

Note:

It is forbidden to add 0.0.0.0 IP address.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.