aboutsummaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:43:32 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:43:32 +0530
commit60bb1ceb138073fc2c555f03b050aa6dfb09ae66 (patch)
tree49d006b1b514652a2a33d24b9511221968657ecd /products
parentb64210a385b87dd18ade214b27e1955e997a7a19 (diff)
service-model-checkin updates
Change-Id: I3bd695630d5aed061c071b8d1cd3a15f64c167dc Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml30
1 files changed, 24 insertions, 6 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml
index 444a0c58..29936912 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml
@@ -18,14 +18,14 @@ description: Checkin Service model in SDC
info:
product: onap-dublin
- service: sdc
+ service: sdc.catalog
author: ONAP CLI Team onap-discuss@lists.onap.org
parameters:
- - name: service-model-uuid
- description: Service model UUID (can be found by running service-model-list)
+ - name: service-id
+ description: Service model ID
type: string
- long_option: service-model-uuid
+ long_option: service-id
short_option: b
is_optional: false
- name: remarks
@@ -34,7 +34,21 @@ parameters:
long_option: remarks
short_option: r
is_optional: false
-
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -42,8 +56,12 @@ http:
auth: basic
mode: direct
request:
- uri: /sdc2/rest/v1/catalog/services/${service-model-uuid}/lifecycleState/CHECKIN
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKIN
method: POST
body: '{"userRemarks": "${remarks}"}'
success_codes:
- 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid} \ No newline at end of file