CLI: vlm-submit beijing
[cli.git] / products / onap-beijing / features / sdc / src / main / resources / open-cli-schema / vlm / vlm-submit-schema-beijing.yaml
1 # Copyright 2018 Huawei Technologies Co., Ltd.
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: vlm-submit
17 description: Submit Vendor License Model
18
19 info:
20   product: onap-beijing
21   service: sdc
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: vlm-id
27     description: Onap VLM ID
28     type: string
29     short_option: x
30     long_option: vlm-id
31     is_optional: false
32   - name: vlm-version
33     description: VLM version
34     type: string
35     short_option: y
36     long_option: vlm-version
37     is_optional: false
38 http:
39   service:
40     name: sdc
41     version: v1.0
42     auth: basic
43     mode: direct
44   request:
45     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/actions
46     method: PUT
47     body: '{"action": "Submit"}'
48   success_codes:
49     - 201
50     - 200