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