064af3bbdf7cdc630a77b854203c60a9d4c26ff1
[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: vlm-delete
17 description: Delete License Model (certified vlms cannot be deleted)
18
19 info:
20   product: onap-elalto
21   service: sdc.onboarding
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 parameters:
26   - name: vendor-name
27     description: vendor name
28     type: string
29     short_option: x
30     long_option: vendor-name
31     is_optional: false
32   - name: vlm-id
33     description: vlm id
34     type: string
35     short_option: y
36     long_option: vlm-id
37     is_optional: false
38
39
40 http:
41   service:
42     name: sdc
43     version: v1.0
44     auth: basic
45     mode: direct
46   request:
47     uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}
48     method: DELETE
49     body: '{"vendorName": "${vendor-name}", "description": "vendor license model",  "iconRef": "icon"}'
50   success_codes:
51     - 200