aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:20:06 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:20:06 +0530
commitd981442aff336c2d2e71e7f3d1c07dc5340ef35b (patch)
tree2a0859e3b475494fff7dff669e373fcf519ee627
parentd110bd0295076517cb635c823073a253b91accb3 (diff)
Approve SDC service model
CLI-57 Change-Id: Id1e4c09fb8fa4ff0418160b2739bb0a7dd7e1a6d Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-approve-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-approve-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-approve-schema-1.1.yaml
new file mode 100644
index 00000000..59b39864
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-approve-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: service-model-approve
+description: Approves the 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}/distribution-state/approve
+ method: POST
+ body: '{"userRemarks": "Approves service model via CLI"}'
+ success_codes:
+ - 200
+