summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:44:00 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:44:00 +0530
commit2a01da7afe881a058820ff47dfed49d4db6d5a6a (patch)
treeb08608f6b9eeff19e3209127746b99ee2114f66e /products/onap-dublin/features/sdc/src/main/resources/open-cli-schema
parent5f4479c7a51f36fa153789c308a3ba72de1b2076 (diff)
vf-model-certify updates
Change-Id: I304d16895c16b69e76e8ad9580285e4bd1326748 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features/sdc/src/main/resources/open-cli-schema')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-dublin.yaml27
1 files changed, 23 insertions, 4 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-dublin.yaml
index f14fd6e3..90877905 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-dublin.yaml
@@ -18,15 +18,15 @@ description: Certify a Virtual function
info:
product: onap-dublin
- service: sdc
+ service: sdc.catalog
author: ONAP HPA Team onap-discuss@lists.onap.org
parameters:
- - name: vf-uniqueId
+ - name: vf-id
description: VF UniqueId
type: string
- long_option: vf-uniqueId
+ long_option: vf-id
short_option: b
is_optional: false
- name: remarks
@@ -36,6 +36,21 @@ parameters:
short_option: r
is_optional: true
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: VF version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: VF UUID
+ scope: short
+ type: uuid
+ - name: version
+ description: VF version
+ scope: short
+ type: string
http:
service:
name: sdc
@@ -43,8 +58,12 @@ http:
auth: basic
mode: direct
request:
- uri: /sdc2/rest/v1/catalog/resources/${vf-uniqueId}/lifecycleState/certify
+ uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/certify
method: POST
body: '{"userRemarks":"${remarks}"}'
success_codes:
- 200
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
+ version: $b{$.version}