SDC service-model commands for onboarding
[cli.git] / products / onap-dublin / features / sdc / src / main / resources / open-cli-schema / service-model / service-model-undocheckout-schema-dublin.yaml
1 # Copyright © Intel Corporation 2019
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 open_cli_schema_version: 1.0
16 name: service-model-undocheckout
17 description: Undo Checkout of Service model in SDC
18
19 info:
20   product: onap-dublin
21   service: sdc
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: service-model-uuid
27     description: Service model UUIID (check service-model-list)
28     type: string
29     long_option: service-model-uuid
30     short_option: b
31     is_optional: true
32
33 http:
34   service:
35     name: sdc
36     version: v1.0
37     auth: basic
38     mode: direct
39   request:
40     uri: /sdc2/rest/v1/catalog/services/${service-model-uuid}/lifecycleState/UNDOCHECKOUT
41     method: POST
42     body: '{"userRemarks": null}'
43   success_codes:
44     - 200