bd51ded604d7b5e4b04cf0a7b1ea3aa1781c155d
[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
17 name: ems-delete
18
19 description: Un-register a EMS in Onap
20
21
22 info:
23   product: onap-casablanca
24   service: aai
25   author: ONAP CLI Team onap-discuss@lists.onap.org
26
27 parameters:
28   - name: ems-id
29     description: Onap EMS unique id
30     type: uuid
31     short_option: x
32     long_option:  ems-id
33     is_optional: false
34   - name: resource-version
35     description: Onap vim resource version
36     type: string
37     short_option: y
38     long_option: resource-version
39     is_optional: true
40 http:
41   service:
42     auth: basic
43     mode: direct
44   request:
45     uri: /aai/v13/external-system/esr-ems-list/esr-ems/${ems-id}?resource-version=${resource-version}
46     method: DELETE
47
48   success_codes:
49     - 204
50     - 404