Started with test decision JSON objects.
[policy/xacml-pdp.git] / applications / monitoring / src / main / resources / RootMonitoringPolicy.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <PolicySet xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" PolicyCombiningAlgId="urn:com:att:xacml:3.0:policy-combining-algorithm:combined-deny-overrides" PolicySetId="urn:org:onap:monitoring:policy:id" Version="1.0" xsi:schemaLocation="urn:oasis:names:tc:xacml:3.0:policy:schema:os access_control-xacml-2.0-policy-schema-os.xsd">
3     <Description>The root policy for supporting in-memory onap.Monitoring policy-type policies.</Description>
4     <Target>
5         <AnyOf>
6             <AllOf>
7                 <Match MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
8                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">DCAE</AttributeValue>
9                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:1.0:subject-category:access-subject" AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
10                 </Match>
11                 <Match MatchId="urn:oasis:names:tc:xacml:3.0:function:string-equal-ignore-case">
12                     <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">configure</AttributeValue>
13                     <AttributeDesignator Category="urn:oasis:names:tc:xacml:3.0:attribute-category:action" AttributeId="urn:oasis:names:tc:xacml:1.0:action:action-id" DataType="http://www.w3.org/2001/XMLSchema#string" MustBePresent="false"/>
14                 </Match>
15             </AllOf>
16         </AnyOf>
17     </Target>
18     <!--
19
20     New Policies created from TOSCA policies can be stored like this.
21     
22     <PolicyIdReference>onap.scaleout.tca</PolicyIdReference>
23     <PolicySetIdReference>urn:oasis:names:tc:xacml:2.0:conformance-test:IIE001:policyset1</PolicySetIdReference>
24     -->
25     <Policy PolicyId="default" Version="1.0" RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:rule-combining-algorithm:permit-unless-deny" >
26         <Description>Default is to allow a permit - returning 0 obligations</Description>
27         <Target/>
28         <Rule RuleId="default" Effect="Permit">
29             <Target/>
30         </Rule>
31     </Policy>
32 </PolicySet>