Improvements for new policy API
[demo.git] / tutorials / vFWDT / policies / rules / vnfPolicy_vFW_TD.json
1 {
2     "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
3     "topology_template": {
4         "policies": [
5             {
6                 "OSDF_FRANKFURT.vnfPolicy_vFW_TD": {
7                     "type": "onap.policies.optimization.resource.VnfPolicy",
8                     "version": "1.0.0",
9                     "type_version": "1.0.0",
10                     "metadata": {
11                         "policy-id": "OSDF_FRANKFURT.vnfPolicy_vFW_TD",
12                         "policy-version": 1
13                     },
14                     "properties": {
15                         "scope": [
16                             "OSDF_FRANKFURT",
17                             "TD"
18                         ],
19                         "resources": [
20                             "vFW-SINK"
21                         ],
22                         "geography": [
23                             "US"
24                         ],
25                         "identity": "vnf_vFW_TD",
26                         "applicableResources": "any",
27                         "vnfProperties": [
28                             {
29                                 "inventoryProvider": "aai",
30                                 "serviceType": "",
31                                 "inventoryType": "vfmodule",
32                                 "customerId": {
33                                     "get_param": "chosen_customer_id"
34                                 },
35                                 "equipmentRole": "",
36                                 "attributes": {
37                                     "orchestrationStatus": [
38                                         "Active"
39                                     ],
40                                     "cloudRegionId": {
41                                         "get_param": "chosen_region"
42                                     },
43                                     "service_instance_id": {
44                                         "get_param": "service_id"
45                                     }
46                                 },
47                                 "passthroughAttributes": {
48                                     "td-role": "destination"
49                                 }
50                             }
51                         ]
52                     }
53                 }
54             }
55         ]
56     }
57 }