From 0f22eedd44f85099607996a647bd67b63098315a Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Oct 2017 14:01:52 +0530 Subject: Add enable-ssl property to microservice-create cmd MSB-88 Change-Id: I0055d2942d4495af943cd7a5cc50db140356f6c5 Signed-off-by: Kanagaraj Manickam k00365106 --- .../onap-cli-schema/microservice-create-schema.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'plugins') 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: -- cgit 1.2.3-korg