Add enable-ssl property to microservice-create cmd 91/17891/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Tue, 10 Oct 2017 08:31:52 +0000 (14:01 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Tue, 10 Oct 2017 08:54:02 +0000 (14:24 +0530)
MSB-88

Change-Id: I0055d2942d4495af943cd7a5cc50db140356f6c5
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml

index c8b7e9b..85b714c 100644 (file)
@@ -26,6 +26,13 @@ parameters:
     short_option: r
     long_option: service-url
     is_optional: false
+  - name: enable-ssl
+    description: Onap service is enabled with https or not
+    type: string
+    short_option: b
+    long_option: enable-ssl
+    is_optional: true
+    default: false
   - name: node-ip
     description: Onap service running node IP
     type: string
@@ -59,11 +66,15 @@ results:
       description: Onap service running nodes
       scope: long
       type: string
+    - name: enable-ssl
+      description: Onap service is enabled with https or not
+      scope: long
+      type: string
 http:
   request:
     uri: /services
     method: POST
-    body: '{"serviceName":"${service-name}","version":"${service-version}","url":"${service-url}","protocol":"REST","visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}'
+    body: '{"serviceName":"${service-name}","version":"${service-version}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}'
     headers:
     queries:
       createOrUpdate: ${create-or-update}
@@ -75,6 +86,7 @@ http:
     version: $b{$.version}
     url: $b{$.url}
     status: $b{$.status}
+    enable-ssl: $b{$.enable-ssl}
     nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
 
   sample_response: