Monitoring policy creation foundation
[policy/xacml-pdp.git] / applications / monitoring / src / test / resources / vDNS.policy.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="onap.scaleout.tca" Version="1" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-unless-permit">
3     <Description>The root policy for supporting in-memory onap.Monitoring policy-type policies.</Description>
4     <Target>
5         <AnyOf>
6             <AllOf>
7                 <!-- Exact policy-id value -->
8                 <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
9                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">onap.scaleout.tca</AttributeValue>
10                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
11                 </Match>
12             </AllOf>
13             <AllOf>
14                 <!-- Regular expression match on policy id -->
15                 <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp">
16                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">onap.scaleout.tca</AttributeValue>
17                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
18                 </Match>
19             </AllOf>
20             <AllOf>
21                 <!-- Exact policy-type value -->
22                 <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
23                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">onap.policies.monitoring.cdap.tca.hi.lo.app</AttributeValue>
24                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
25                 </Match>
26             </AllOf>
27             <AllOf>
28                 <!-- Regular expression match on policy-type -->
29                 <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-regexp">
30                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">onap.policies.monitoring.cdap.tca.hi.lo.app</AttributeValue>
31                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
32                 </Match>
33             </AllOf>
34         </AnyOf>
35     </Target>
36     <Rule RuleId="urn:org:onap:xacml:rule:id:74caee98-bd05-4bb5-917c-a26ef80bb0f4" Effect="Permit">
37         <Description>Default is Permit</Description>
38         <!-- 
39         
40         Add JSON as Obligation
41         
42          -->
43     </Rule>
44 </Policy>