aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:18:38 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:18:38 +0530
commit1997f7cd489ebc16e384e9699904a85093fd36fc (patch)
treeaa572f0f25d9e590924898bf601d43c40b51cc3c /plugins/sdc/src/main
parent2843fc199f3a18b735b8f43773ae4ed3448a9bf7 (diff)
Checkin service model in SDC
CLI-57 Change-Id: Ic84c6b5194594c9c4869dd1aac9ee17de39502a6 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main')
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkin-schema-1.1.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkin-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkin-schema-1.1.yaml
new file mode 100644
index 00000000..d5900fec
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkin-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: service-model-checkin
+description: Checkin Service model in SDC
+version: onap-1.1
+service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-id
+ short_option: b
+ is_optional: true
+
+http:
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/checkin
+ method: POST
+ body: '{"userRemarks": "Checked in via CLI"}'
+ success_codes:
+ - 200
+