summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:44:04 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:44:04 +0530
commit75dbfceb537bf8c8e933fd0e30d8d0545df96c09 (patch)
treeab5faa0e0838b11b4b6d3d977266697b990fb96a /products/onap-dublin/features
parentc60433598b1b3ed5ac5b147720a70ee82a68cfee (diff)
vf-model-checkin updates
Change-Id: Ie5aef837044144c68c80f265ce4bb5bebc42c462 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-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/vf/vf-model-checkin-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-dublin.yaml
index 9ec09f0a..b3a830d2 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-dublin.yaml
@@ -18,14 +18,14 @@ description: Checkin VF model in SDC
info:
product: onap-dublin
- service: sdc
+ service: sdc.catalog
author: ONAP CLI Team onap-discuss@lists.onap.org
parameters:
- - name: vf-model-uuid
- description: VF model UUID (can be found by running vf-model-list)
+ - name: vf-id
+ description: VF model ID
type: string
- long_option: vf-model-uuid
+ long_option: vf-id
short_option: b
is_optional: false
- name: remarks
@@ -35,7 +35,21 @@ parameters:
short_option: r
default_value: Checked in by ONAP CLI
is_optional: false
-
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+ - name: uuid
+ description: VF uuid
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -43,8 +57,12 @@ http:
auth: basic
mode: direct
request:
- uri: /sdc2/rest/v1/catalog/resources/${vf-model-uuid}/lifecycleState/CHECKIN
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKIN
method: POST
body: '{"userRemarks": "${remarks}"}'
success_codes:
- 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.uuid} \ No newline at end of file