c9d7763771e77a647df61f1a4d8076fa1c14e583
[demo.git] / tutorials / vFWDT / workflow / templates / hasRequest.json
1 {
2     "name": "de4f04e3-0a65-470b-9d07-8ea6c2fb3e10",
3     "template": {
4         "constraints": {
5             "affinity_vFW_TD": {
6                 "demands": ["vFW-SINK", "vPGN"],
7                 "properties": {
8                     "category": "region",
9                     "qualifier": "same"
10                 },
11                 "type": "zone"
12             }
13         },
14         "parameters": {
15             "service_name": "vFW_TD",
16             "chosen_region": "RegionOne",
17             "chosen_customer_id": "DemoCust_4fb7d3cf-5ddc-4d8c-8acf-70cc9174d18f",
18             "service_id": "2ad369d4-9056-4dc9-8e6d-df24f45e8729",
19             "customer_long": 2.2,
20             "REQUIRED_MEM": "",
21             "customer_lat": 1.1,
22             "REQUIRED_DISK": ""
23         },
24         "locations": {
25             "customer_loc": {
26                 "longitude": {
27                     "get_param": "customer_long"
28                 },
29                 "latitude": {
30                     "get_param": "customer_lat"
31                 }
32             }
33         },
34         "demands": {
35             "vFW-SINK": [{
36                 "attributes": {
37                     "global-customer-id": {
38                         "get_param": "chosen_customer_id"
39                     },
40                     "cloud-region-id": {
41                         "get_param": "chosen_region"
42                     },
43                     "model-version-id": "202d2fd8-a045-4c9a-b767-2a1639c10291",
44                     "orchestration-status": ["active"],
45                     "model-invariant-id": "6f3fd439-fd5f-4a2d-95bc-b6bf8787001a",
46                     "service_instance_id": {
47                         "get_param": "service_id"
48                     },
49                     "prov-status": "ACTIVE"
50                 },
51                 "inventory_provider": "aai",
52                 "service_resource_id": "vFW-SINK-XX",
53                 "inventory_type": "vfmodule",
54                 "service_type": "vFW-SINK-XX",
55                 "excluded_candidates": [{
56                     "inventory_type": "vfmodule",
57                     "candidate_id": ["e765d576-8755-4145-8536-0bb6d9b1dc9a"]
58                 }],
59                 "required_candidates": [{
60                     "inventory_type": "vfmodule",
61                     "candidate_id": ["e765d576-8755-4145-8536-0bb6d9b1dc9a"]
62                 }]
63             }],
64             "vPGN": [{
65                 "attributes": {
66                     "global-customer-id": {
67                         "get_param": "chosen_customer_id"
68                     },
69                     "cloud-region-id": {
70                         "get_param": "chosen_region"
71                     },
72                     "model-version-id": "6bfe954e-bb00-4111-be3c-33eed9d20a8c",
73                     "orchestration-status": ["active"],
74                     "model-invariant-id": "3f356335-7b36-41ee-8f74-72d0a2ec3ebf",
75                     "service_instance_id": {
76                         "get_param": "service_id"
77                     },
78                     "prov-status": "ACTIVE"
79                 },
80                 "inventory_provider": "aai",
81                 "service_resource_id": "vPGN-XX",
82                 "unique": "false",
83                 "inventory_type": "vfmodule",
84                 "service_type": "vPGN-XX"
85             }]
86         },
87         "homing_template_version": "2017-10-10"
88     },
89     "limit": 100,
90     "num_solution": "100",
91     "files": {},
92     "timeout": 1200
93 }