summaryrefslogtreecommitdiffstats
path: root/plugins/msb/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-10 14:01:52 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-10-10 14:24:02 +0530
commit0f22eedd44f85099607996a647bd67b63098315a (patch)
tree5f3573ae7bf1eeca53a95f38958f5e87a12905fe /plugins/msb/src
parentd4309326fbbb01c89e7bf88c656ac6e224b1b7a3 (diff)
Add enable-ssl property to microservice-create cmd
MSB-88 Change-Id: I0055d2942d4495af943cd7a5cc50db140356f6c5 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/msb/src')
-rw-r--r--plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml b/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml
index c8b7e9be..85b714c0 100644
--- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml
+++ b/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml
@@ -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: