5bade839d86741161da3ab3ff79a6fae7ff789c9
[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: service-delete\r
17 \r
18 description: Delete a service instance using SO\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: service-id\r
27     description: unique id for service instance\r
28     type: string\r
29     short_option: x\r
30     long_option: service-instace-id\r
31     is_optional: false\r
32   - name: model-invariant-id\r
33     description: model invariant id for service in SDC catalog\r
34     type: string\r
35     short_option: b\r
36     long_option: model-invariant-id\r
37     is_optional: false\r
38   - name: model-uuid\r
39     description: model uuid for service in SDC catalog\r
40     type: string\r
41     short_option: i\r
42     long_option: model-uuid\r
43     is_optional: false\r
44   - name: model-name\r
45     description: model name available in SDC catalog\r
46     type: string\r
47     short_option: e\r
48     long_option: model-name\r
49     is_optional: false\r
50   - name: model-version\r
51     description: model version of service (eg. 1.0)\r
52     type: string\r
53     short_option: g\r
54     long_option: model-version\r
55     is_optional: false\r
56   - name: customer-name\r
57     description: unique id for customer\r
58     type: string\r
59     short_option: c\r
60     long_option: customer-name\r
61     is_optional: false\r
62   - name: cloud-region\r
63     description: cloud region id\r
64     type: string\r
65     short_option: j\r
66     long_option: cloud-region\r
67     is_optional: false\r
68   - name: tenant-id\r
69     description: tenant id\r
70     type: string\r
71     short_option: k\r
72     long_option: tenant-id\r
73     is_optional: false\r
74   - name: requestor-id\r
75     description: requestor ID\r
76     type: string\r
77     short_option: r\r
78     long_option: requestor-id\r
79     is_optional: false\r
80 \r
81 http:\r
82   service:\r
83     name: so\r
84     version: v6\r
85     auth: basic\r
86     mode: direct\r
87   request:\r
88     uri: /onap/so/infra/serviceInstances/v6/${service-id}\r
89     method: DELETE\r
90     body: '{\r
91       "requestDetails":{\r
92         "modelInfo":{\r
93           "modelType":"service",\r
94           "modelInvariantId":"${model-invariant-id}",\r
95           "modelVersionId":"${model-uuid}",\r
96           "modelName":"${model-name}",\r
97           "modelVersion":"${model-version}"\r
98         },\r
99         "cloudConfiguration":{\r
100           "lcpCloudRegionId":"${cloud-region}",\r
101           "tenantId":"${tenant-id}"\r
102         },\r
103         "subscriberInfo":{\r
104           "globalSubscriberId":"${customer-name}"\r
105         },\r
106         "requestInfo":{\r
107           "requestorId":"${requestor-id}",\r
108           "source":"CLI"\r
109         }\r
110       }\r
111     }'\r
112   success_codes:\r
113     - 202\r