81b7fadadc67fefeca1c5814bfd80bf05f1e7277
[cli.git] /
1 # Copyright © Intel Corporation 2019\r
2 #\r
3 # Licensed under the Apache License, Version 2.0 (the "License");\r
4 # you may not use this file except in compliance with the License.\r
5 # You may obtain a copy of the License at\r
6 #\r
7 #     http://www.apache.org/licenses/LICENSE-2.0\r
8 #\r
9 # Unless required by applicable law or agreed to in writing, software\r
10 # distributed under the License is distributed on an "AS IS" BASIS,\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12 # See the License for the specific language governing permissions and\r
13 # limitations under the License.\r
14 \r
15 open_cli_schema_version: 1.0\r
16 name: vfmodule-delete\r
17 \r
18 description: delete a VF module (experimental)\r
19 \r
20 info:\r
21   product: onap-dublin\r
22   service: so\r
23   author: ONAP CLI Team onap-discuss@lists.onap.org\r
24 \r
25 parameters:\r
26   - name: vfmodule-id\r
27     description: VF module Id\r
28     type: string\r
29     short_option: x\r
30     long_option: vfmodule-id\r
31     is_optional: false\r
32   - name: service-id\r
33     description: unique id for service\r
34     type: string\r
35     short_option: j\r
36     long_option: service-id\r
37     is_optional: false\r
38   - name: vf-id\r
39     description: unique id for related VF\r
40     type: string\r
41     short_option: y\r
42     long_option: vf-id\r
43     is_optional: false\r
44   - name: vf-model-invariant-id\r
45     description: vf model invariant id\r
46     type: string\r
47     short_option: k\r
48     long_option: vf-model-invariant-id\r
49     is_optional: false\r
50   - name: vfmodule-name\r
51     description: vfmodule model name\r
52     type: string\r
53     short_option: e\r
54     long_option: vfmodule-name\r
55     is_optional: false\r
56   - name: vfmodule-version\r
57     description: vf module version\r
58     type: string\r
59     short_option: g\r
60     long_option: vfmodule-version\r
61     is_optional: false\r
62   - name: cloud-region\r
63     description: cloud region identifier\r
64     type: string\r
65     short_option: l\r
66     long_option: cloud-region\r
67     is_optional: false\r
68   - name: tenant-id\r
69     description: openstack tenant id\r
70     type: string\r
71     long_option: tenant-id\r
72     short_option: z\r
73     is_optional: false\r
74 \r
75 http:\r
76   service:\r
77     name: so\r
78     version: v6\r
79     auth: basic\r
80     mode: direct\r
81   request:\r
82     uri: /onap/so/infra/serviceInstances/v6/${service-id}/vnfs/${vf-id}/vfModules/${vfmodule-id}\r
83     method: DELETE\r
84     body: '{\r
85               "requestDetails":{\r
86                  "modelInfo":{\r
87                     "modelType":"vfModule",\r
88                     "modelInvariantId":"${vf-model-invariant-id}",\r
89                     "modelName":"${vfmodule-name}",\r
90                     "modelVersion":"${vfmodule-version}"\r
91                  },\r
92                  "cloudConfiguration":{\r
93                     "lcpCloudRegionId":"${cloud-region}",\r
94                     "tenantId":"${tenant-id}"\r
95                  },\r
96                  "requestInfo":{\r
97                     "source":"VID"\r
98                  }\r
99               }\r
100            }'\r
101 \r
102   success_codes:\r
103     - 202