aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml')
-rw-r--r--plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml b/plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml
new file mode 100644
index 00000000..cf243365
--- /dev/null
+++ b/plugins/onap-amsterdam/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-1.1.yaml
@@ -0,0 +1,31 @@
+open_cli_schema_version: 1.0
+name: service-model-revert
+description: Checkout Service model in SDC
+
+info:
+ product: onap-amsterdam
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/checkout
+ method: POST
+ body: '{"userRemarks": "Checked out via CLI"}'
+ success_codes:
+ - 200
+