Merge "fixed sonar issue in PolicyEngineResponse.java"
[ccsdk/apps.git] / components / model-catalog / blueprint-model / starter-blueprint / baseconfiguration / Definitions / activation-blueprint.json
1 {
2   "metadata": {
3     "template_author": "Brinda Santh Muthuramalingam",
4     "author-email": "brindasanth@in.ibm.com",
5     "user-groups": "ADMIN, OPERATION",
6     "template_name": "baseconfiguration",
7     "template_version": "1.0.0",
8     "template_tags": "brinda, tosca"
9   },
10   "imports": [
11     {
12       "file": "Definitions/data_types.json"
13     },
14     {
15       "file": "Definitions/node_types.json"
16     },
17     {
18       "file": "Definitions/artifact_types.json"
19     }
20   ],
21   "topology_template": {
22     "inputs": {
23       "request-id": {
24         "required": true,
25         "type": "string"
26       },
27       "action-name": {
28         "required": true,
29         "type": "string"
30       },
31       "scope-type": {
32         "required": true,
33         "type": "string"
34       },
35       "hostname": {
36         "required": true,
37         "type": "string"
38       }
39     },
40     "node_templates": {
41       "resource-assignment-process": {
42         "type": "dg-activate",
43         "properties": {
44           "process-name": {
45             "get_input": "action-name"
46           },
47           "version": {
48             "get_property": [
49               "SELF",
50               "process-name"
51             ]
52           },
53           "content": {
54             "get_artifact": [
55               "SELF",
56               "dg-resource-assignment-process"
57             ]
58           }
59         },
60         "artifacts": {
61           "dg-resource-assignment-process": {
62             "type": "artifact-directed-graph",
63             "file": "Plans/CONFIG_ResourceAssignment_1.0.0.xml"
64           }
65         }
66       },
67       "activate-process": {
68         "type": "dg-activate",
69         "properties": {
70           "process-name": {
71             "get_input": "action-name"
72           },
73           "version": {
74             "get_property": [
75               "SELF",
76               "process-name"
77             ]
78           },
79           "content": {
80             "get_artifact": [
81               "SELF",
82               "dg-activate-process"
83             ]
84           }
85         },
86         "artifacts": {
87           "dg-activate-process": {
88             "type": "artifact-directed-graph",
89             "file": "Plans/CONFIG_ActivateNetconf_1.0.0.xml"
90           }
91         }
92       },
93       "assign-activate-process": {
94         "type": "dg-activate",
95         "properties": {
96           "process-name": {
97             "get_input": "action-name"
98           },
99           "version": {
100             "get_property": [
101               "SELF",
102               "process-name"
103             ]
104           },
105           "content": {
106             "get_artifact": [
107               "SELF",
108               "dg-assign-activate-process"
109             ]
110           }
111         },
112         "artifacts": {
113           "dg-assign-activate-process": {
114             "type": "artifact-directed-graph",
115             "file": "Plans/CONFIG_AssignActivateNetconf_1.0.0.xml"
116           }
117         }
118       },
119       "resource-assignment": {
120         "type": "component-resource-assignment",
121         "properties": {
122           "request-id": "1234"
123         },
124         "interfaces": {
125           "ResourceAssignmentComponent": {
126             "operations": {
127               "process": {
128                 "inputs": {
129                   "action-name": {
130                     "get_input": "action-name"
131                   },
132                   "resource-type": "vnf-type",
133                   "request-id": {
134                     "get_input": "request-id"
135                   },
136                   "resource-id": {
137                     "get_input": "hostname"
138                   },
139                   "artifact-prefix-names": [
140                     "baseconfig"
141                   ],
142                   "template-content": {
143                     "get_artifact": [
144                       "SELF",
145                       "baseconfig-template"
146                     ]
147                   },
148                   "mapping-content": {
149                     "get_artifact": [
150                       "SELF",
151                       "baseconfig-mapping"
152                     ]
153                   }
154                 },
155                 "outputs": {
156                   "resource-assignment-params": {
157                     "get_attribute": [
158                       "SELF",
159                       "assignment-params"
160                     ]
161                   },
162                   "status": "success"
163                 }
164               }
165             }
166           }
167         },
168         "artifacts": {
169           "baseconfig-template": {
170             "type": "artifact-template-velocity",
171             "file": "Templates/baseconfig-template.vtl"
172           },
173           "baseconfig-mapping": {
174             "type": "artifact-mapping-resource",
175             "file": "Definitions/baseconfig-mapping.json"
176           }
177         }
178       },
179       "resource-assignment-py": {
180         "type": "component-resource-assignment",
181         "properties": {
182           "request-id": "1234"
183         },
184         "interfaces": {
185           "ResourceAssignmentComponent": {
186             "operations": {
187               "process": {
188                 "implementation": {
189                   "primary": "component-script"
190                 },
191                 "inputs": {
192                   "action-name": {
193                     "get_input": "action-name"
194                   }
195                 },
196                 "outputs": {
197                   "resource-assignment-params": "",
198                   "status": ""
199                 }
200               }
201             }
202           }
203         },
204         "artifacts": {
205           "component-script": {
206             "type": "artifact-script-jython",
207             "file": "Scripts/SamplePythonComponentNode.py"
208           }
209         }
210       },
211       "activate-jython": {
212         "type": "component-jython-executor",
213         "interfaces": {
214           "JythonExecutorComponent": {
215             "operations": {
216               "process": {
217                 "implementation": {
218                   "primary": "component-script"
219                 },
220                 "inputs": {
221                   "instance-dependencies": [
222                     "json-parser-service",
223                     "netconf-rpc-service"
224                   ]
225                 },
226                 "outputs": {
227                   "response-data": "",
228                   "status": ""
229                 }
230               }
231             }
232           }
233         },
234         "artifacts": {
235           "component-script": {
236             "type": "artifact-script-jython",
237             "file": "Scripts/SamplePythonComponentNode.py"
238           }
239         }
240       }
241     },
242     "workflows": {
243       "resource-assignment": {
244         "inputs": {
245           "resource-assignment-properties": {
246             "required": true,
247             "type": "resource-assignment-properties"
248           }
249         },
250         "steps": {
251           "call-resource-assignment": {
252             "description": "Resource Assignment Workflow",
253             "target": "resource-assignment-process",
254             "activities": [
255               {
256                 "call_operation": "CONFIG.ResourceAssignment"
257               }
258             ]
259           }
260         }
261       },
262       "activate": {
263         "inputs": {
264           "activate-properties": {
265             "required": true,
266             "type": "activate-properties"
267           }
268         },
269         "steps": {
270           "activate-process": {
271             "description": "Netconf Activation Workflow",
272             "target": "activate-process",
273             "activities": [
274               {
275                 "call_operation": "CONFIG.ActivateProcess"
276               }
277             ]
278           }
279         }
280       },
281       "assign-activate": {
282         "inputs": {
283           "assign-activate-properties": {
284             "required": true,
285             "type": "assign-activate-properties"
286           }
287         },
288         "steps": {
289           "activate-process": {
290             "description": "Resource Assign and Netconf Activation Workflow",
291             "target": "assign-activate-process",
292             "activities": [
293               {
294                 "call_operation": "CONFIG.AssignActivateProcess"
295               }
296             ]
297           }
298         }
299       }
300     }
301   }
302 }