a082ce23db85f438fb87fbd4c8de87b5d341e40d
[cli.git] /
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: vf-delete
17 description: delete a VF (experimental)
18 info:
19   product: onap-beijing
20   service: so
21   author: ONAP CLI Team onap-discuss@lists.onap.org
22
23
24 parameters:
25 - name: vf-id
26   description: id for vnf
27   type: string
28   short_option: x
29   long_option: vf-id
30   is_optional: false
31 - name: service-instance-id
32   description: unique id for service instance
33   type: string
34   short_option: y
35   long_option: service-instance-id
36   is_optional: false
37 - name: cloud-region
38   description: Cloud region ID
39   type: string
40   short_option: l
41   long_option: cloud-region
42   is_optional: false
43 - name: tenant-id
44   description: openstack tenant id (uuid)
45   type: string
46   short_option: z
47   long_option: tenant-id
48   is_optional: false
49 - name: model-invariant-id
50   description: model invariant id for service in SDC catalog
51   type: string
52   short_option: b
53   long_option: model-invariant-id
54   is_optional: false
55 - name: model-uuid
56   description: model uuid for service in SDC catalog
57   type: string
58   short_option: c
59   long_option: model-uuid
60   is_optional: false
61 - name: model-name
62   description: model name available in SDC catalog
63   type: string
64   short_option: e
65   long_option: model-name
66   is_optional: false
67 - name: model-version
68   description: model version of service (eg. 1.0)
69   type: string
70   short_option: g
71   long_option: model-version
72   is_optional: false
73 http:
74   service:
75     name: so
76     version: v3
77     auth: basic
78     mode: direct
79   request:
80     uri: /ecomp/mso/infra/serviceInstances/v3/${service-instance-id}/vnfs/${vf-id}
81     method: DELETE
82     body: '{"requestDetails": {"modelInfo": {"modelType": "vnf","modelInvariantId":"${model-invariant-id}","modelVersionId": "${model-uuid}","modelName": "${model-name}","modelVersion":"${model-version}"},"cloudConfiguration": {"lcpCloudRegionId": "${cloud-region}","tenantId":"${tenant-id}"},"requestInfo": {"source": "VID"},"requestParameters": {"userParams":[]}}}'
83   success_codes:
84   - 202