james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautier DI FOLCO (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-2536) Fetch a DLP configuration item by sender domain and rule id
Date Mon, 03 Sep 2018 13:07:01 GMT
Gautier DI FOLCO created JAMES-2536:
---------------------------------------

             Summary: Fetch a DLP configuration item by sender domain and rule id
                 Key: JAMES-2536
                 URL: https://issues.apache.org/jira/browse/JAMES-2536
             Project: James Server
          Issue Type: Improvement
          Components: webadmin
            Reporter: Gautier DI FOLCO


Retrieve a DLP configuration rule for corresponding *senderDomain* and a *ruleId*


{code:java}
curl -XGET http://ip:port/dlp/rules/senderDomain/rules/ruleId{code}

Response codes:
 - 200: A dlp configuration item is returned
 - 404: The domain and/or the rule does not exist.

This is an example of returned body.


{code:java}
{
  "id": "1",
  "expression": "james.org",
  "explanation": "Find senders or recipients containing james[any char]org",
  "targetsSender": true,
  "targetsRecipients": true,
  "targetsContent": false
}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message