cdb80d9ddd8ca8717dd8c5f8e841c97f4deb8af2
[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: service-model-checkin
17 description: Checkin Service 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: service-id
26     description: Service model ID
27     type: string
28     long_option: service-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     is_optional: false
37 results:
38   direction: portrait
39   attributes:
40     - name: id
41       description: NS checked out version unique ID
42       scope: short
43       type: string
44     - name: uuid
45       description: NS checked out version unique ID
46       scope: short
47       type: string
48     - name: version
49       description: VF version
50       scope: short
51       type: string
52 http:
53   service:
54     name: sdc
55     version: v1.0
56     auth: basic
57     mode: direct
58   request:
59     uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKIN
60     method: POST
61     body: '{"userRemarks": "${remarks}"}'
62   success_codes:
63     - 200
64   result_map:
65     id: $b{$.uniqueId}
66     version: $b{$.version}
67     uuid: $b{$.unid}