summaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:43:58 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:43:58 +0530
commit5f4479c7a51f36fa153789c308a3ba72de1b2076 (patch)
tree760ba3fcd447b154659227be7e16bf64e202adcf /products
parent48035f4028bcaf9c5fa172cab7c0ac6fbd996701 (diff)
service-model-checkout updates
Change-Id: Iccbad9cbe04843f30ecc763f22fce4911b039681 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-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/service-model/service-model-checkout-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
index ec0ccc6d..4d15c875 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
@@ -18,25 +18,29 @@ description: Checkout 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 from 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: true
results:
direction: portrait
attributes:
- - name: ID
+ - name: id
description: NS checked out version unique ID
scope: short
type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -44,10 +48,11 @@ http:
auth: basic
mode: direct
request:
- uri: /sdc2/rest/v1/catalog/services/${service-model-uuid}/lifecycleState/CHECKOUT
+ uri: /sdc2/rest/v1/catalog/services/${service-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