a2db03f22022ba8613d8b1d992fcbe8e8db72737
[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-elalto
21   service: sdc.catalog
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: vf-id
26     description: VF model ID
27     type: string
28     long_option: vf-id
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 results:
39   direction: portrait
40   attributes:
41     - name: id
42       description: VF version unique ID
43       scope: short
44       type: string
45     - name: version
46       description: VF version
47       scope: short
48       type: string
49     - name: uuid
50       description: VF uuid
51       scope: short
52       type: string
53 http:
54   service:
55     name: sdc
56     version: v1.0
57     auth: basic
58     mode: direct
59   request:
60     uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKIN
61     method: POST
62     body: '{"userRemarks": "${remarks}"}'
63   success_codes:
64     - 200
65   result_map:
66     id: $b{$.uniqueId}
67     version: $b{$.version}
68     uuid: $b{$.uuid}