9ec09f0a25ebbed78ee9f89ddeeb7c24a3e7912f
[cli.git] /
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: vf-model-checkin
17 description: Checkin VF 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 parameters:
25   - name: vf-model-uuid
26     description: VF model UUID (can be found by running vf-model-list)
27     type: string
28     long_option: vf-model-uuid
29     short_option: b
30     is_optional: false
31   - name: remarks
32     description: checkin remarks
33     type: string
34     long_option: remarks
35     short_option: r
36     default_value: Checked in by ONAP CLI
37     is_optional: false
38
39 http:
40   service:
41     name: sdc
42     version: v1.0
43     auth: basic
44     mode: direct
45   request:
46     uri: /sdc2/rest/v1/catalog/resources/${vf-model-uuid}/lifecycleState/CHECKIN
47     method: POST
48     body: '{"userRemarks": "${remarks}"}'
49   success_codes:
50     - 200