Improvements for new policy API
[demo.git] / tutorials / vFWDT / policies / rules / QueryPolicy_vFW_TD.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3     "topology_template": {
4         "policies": [
5             {
6                 "OSDF_FRANKFURT.queryPolicy_vFW_TD": {
7                     "type": "onap.policies.optimization.service.QueryPolicy",
8                     "version": "1.0.0",
9                     "type_version": "1.0.0",
10                     "metadata": {
11                         "policy-id": "OSDF_FRANKFURT.queryPolicy_vFW_TD",
12                         "policy-version": 1
13                     },
14                     "properties": {
15                         "scope": [
16                             "OSDF_FRANKFURT"
17                         ],
18                         "services": [
19                             "vFW_TD"
20                         ],
21                         "resources": [
22                             "vFW-SINK",
23                             "vPGN"
24                         ],
25                         "geography": [
26                             "US"
27                         ],
28                         "identity": "vFW_TD_Query_Policy",
29                         "queryProperties": [
30                             {
31                                 "attribute": "chosen_region",
32                                 "attribute_location": "chosenRegion"
33                             },
34                             {
35                                 "attribute": "chosen_customer_id",
36                                 "attribute_location": "chosenCustomerId"
37                             },
38                             {
39                                 "attribute": "customerLatitude",
40                                 "attribute_location": "customerLatitude",
41                                 "value": 1.1
42                             },
43                             {
44                                 "attribute": "customerLongitude",
45                                 "attribute_location": "customerLongitude",
46                                 "value": 2.2
47                             }
48                         ]
49                     }
50                 }
51             }
52         ]
53     }
54 }