Merge "catalog module for onap-dublin cli product"
[cli.git] / products / onap-dublin / features / aai / src / main / resources / open-cli-schema / esr / vim / vim-delete-schema-dublin.yaml
1 # Copyright © Intel Corporation 2019
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
17 name: vim-delete
18
19 description: Un-register a VIM under from cloud region in Onap
20
21
22 info:
23   product: onap-dublin
24   service: aai
25   author: ONAP CLI Team onap-discuss@lists.onap.org
26
27 parameters:
28   - name: cloud-name
29     description: Onap cloud name
30     type: string
31     short_option: x
32     long_option: cloud-name
33     is_optional: false
34   - name: region-name
35     description: Onap  region name
36     type: string
37     short_option: y
38     long_option:  region-name
39     is_optional: false
40   - name: vim-id
41     description: Onap VIM unique id
42     type: uuid
43     short_option: z
44     long_option:  vim-id
45     is_optional: false
46   - name: resource-version
47     description: Onap vim resource version
48     type: string
49     short_option: b
50     long_option: resource-version
51     is_optional: true
52
53 http:
54   service:
55     auth: basic
56     mode: direct
57   request:
58     uri: /aai/v13/cloud-infrastructure/cloud-regions/cloud-region/${cloud-name}/${region-name}/esr-system-info-list/esr-system-info/${vim-id}?resource-version=${resource-version}
59     method: DELETE
60
61   success_codes:
62     - 204
63     - 404
64
65   sample_response:
66     body: ''