bbc03ffd362fa3ac9c37fffaf245a690f4858dab
[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: vsp-validate
17 description: Validate the uploaded Vendor Software Product
18
19 info:
20   product: onap-elalto
21   service: sdc.onboarding
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: vsp-id
26     description: Onap VSP ID
27     type: string
28     short_option: x
29     long_option: vsp-id
30     is_optional: false
31   - name: vsp-version
32     description: VSP version
33     type: string
34     short_option: y
35     long_option: vsp-version
36     is_optional: false
37
38 results:
39   direction: portrait
40   attributes:
41     - name: status
42       description: Validation status
43       scope: short
44       type: string
45     - name: errors
46       description: Validation messages
47       scope: short
48       type: json
49
50 http:
51   service:
52     name: sdc
53     version: v1.0
54     auth: basic
55     mode: direct
56   request:
57     uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate/process
58     method: PUT
59     body: '{}'
60   success_codes:
61     - 201
62     - 200
63   result_map:
64     status: $b{$.status}
65     errors: $b{$.errors}