aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/sdc/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:44:05 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:44:05 +0530
commit30b388e563c2c9d191d38cefff389a3a35ee1fb5 (patch)
treeacc87e6a822962dae54afe0c37342359ab0a6e24 /products/onap-dublin/features/sdc/src/main
parent75dbfceb537bf8c8e933fd0e30d8d0545df96c09 (diff)
vf-model-checkout updates
Change-Id: I42fe2fae107674484b90bb4132166c2acd87ebad Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features/sdc/src/main')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-dublin.yaml19
1 files changed, 12 insertions, 7 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-dublin.yaml
index 511e29fd..c121811e 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-dublin.yaml
@@ -18,25 +18,29 @@ description: Checkout 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 from 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
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: VF checked out version unique ID
scope: short
type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
http:
service:
@@ -45,10 +49,11 @@ http:
auth: basic
mode: direct
request:
- uri: /sdc2/rest/v1/catalog/resources/${vf-model-uuid}/lifecycleState/CHECKOUT
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKOUT
method: POST
body: '{}'
success_codes:
- 200
result_map:
- ID: $b{$.uniqueId} \ No newline at end of file
+ id: $b{$.uniqueId}
+ version: $b{$.version} \ No newline at end of file