We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Email Security Gateway

How can I perform list and add functions on the per user whitelist via XML?

  • Type: Knowledgebase
  • Date changed: 3 years ago
Solution #00007207  

Scope:
Barracuda Spam Firewall, all firmware versions.

Answer:

The XML formatting for these requests will look this:

--XML REQUEST FORMAT EXAMPLE-- 
<?xml version="1.0" encoding="UTF-8" ?> 
<methodCall> 
<methodName>config.add</methodName> 
<params> 
<param> 
<value> 
<struct> 
<member> 
<name>parent_type</name> 
<value> 
<string><![CDATA[user]]></string> 
</value> 
</member> 
<member> 
<name>variable</name> 
<value> 
<string><![CDATA[user_scana_sender_allow]]></string> 
</value> 
</member> 
<member> 
<name>values</name> 
<value> 
<array> 
<data> 
<value> 
<string><![CDATA[jimbob@crust.com]]></string> 
</value> 
<value> 
<string><![CDATA[gertrude@yourhouse.com]]></string> 
</value> 
</data> 
</array> 
</value> 
</member> 
<member> 
<name>parent_path</name> 
<value> 
<string><![CDATA[usrname@mydomain.com]]></string> 
</value> 
</member> 
</struct> 
</value> 
</param> 
</params> 
</methodCall> 
---XML REQUEST END —
--XML RESPONSE EXAMPLE-- 
<?xml version="1.0" encoding="UTF-8" ?> 
<methodResponse> 
<params> 
<param> 
<value> 
<struct> 
<member> 
<name>Result</name> 
<value> 
<string><![CDATA[200: OK]]></string> 
</value> 
</member> 
</struct> 
</value> 
</param> 
</params> 
</methodResponse> 
--XML RESPONSE END--

Link To This Page: