aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sdc/src/main/resources/onap-cli-schema
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:19:13 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-02 14:19:13 +0530
commitd110bd0295076517cb635c823073a253b91accb3 (patch)
tree3ee07b39837293ecfe451e4ae5908c2ab1bd0abe /plugins/sdc/src/main/resources/onap-cli-schema
parent1997f7cd489ebc16e384e9699904a85093fd36fc (diff)
Certify service model in SDC
CLI-57 Change-Id: I2f54fd934d88e0375659dbfcc9f70cdc684a2009 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema')
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-complete-schema-1.1.yaml26
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-request-schema-1.1.yaml26
-rw-r--r--plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-start-schema-1.1.yaml26
3 files changed, 78 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-complete-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-complete-schema-1.1.yaml
new file mode 100644
index 00000000..3402d673
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-complete-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: service-model-certify-complete
+description: Completes the certification of 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/certify
+ method: POST
+ body: '{"userRemarks": "Completing certification via CLI"}'
+ success_codes:
+ - 200
+
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-request-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-request-schema-1.1.yaml
new file mode 100644
index 00000000..2c437e51
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-request-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: service-model-certify-request
+description: Request the certification of 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/certificationRequest
+ method: POST
+ body: '{"userRemarks": "Requesting certification via CLI"}'
+ success_codes:
+ - 200
+
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-start-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-start-schema-1.1.yaml
new file mode 100644
index 00000000..05c056d1
--- /dev/null
+++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-certify-start-schema-1.1.yaml
@@ -0,0 +1,26 @@
+open_cli_schema_version: 1.0
+name: service-model-certify-start
+description: Starts the certification of 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/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+