1 # Copyright 2018 Huawei Technologies Co., Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 open_cli_schema_version: 1.0
18 description: Delete service instance (experimental)
23 author: ONAP CLI Team onap-discuss@lists.onap.org
27 description: unique id for service instance
30 long_option: service-instace-id
32 - name: model-invariant-id
33 description: model invariant id for service in SDC catalog
36 long_option: model-invariant-id
39 description: model uuid for service in SDC catalog
42 long_option: model-uuid
45 description: model name available in SDC catalog
48 long_option: model-name
51 description: model version of service (eg. 1.0)
54 long_option: model-version
57 description: unique id for customer
60 long_option: customer-name
63 description: cloud region id
66 long_option: cloud-region
69 description: tenant id
72 long_option: tenant-id
82 uri: /ecomp/mso/infra/serviceInstances/v4/${service-id}
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"}}}'