2727b52f089be426fdd21b8916fa8e4087ae326a
[cli.git] /
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 name: vfc-catalog-get-vnf
17 description: vfc get onboard vnf status
18
19 info:
20   product: onap-dublin
21   service: vfc
22   author: ONAP HPA Integration Team (haibin.huang@intel.com)
23
24 parameters:
25   - name: vnf-csar-uuid
26     description: vnf's uuid of csar file
27     type: string
28     short_option: c
29     long_option: vnf-csar-uuid
30     is_optional: false
31
32 results:
33   direction: landscape
34   attributes:
35     - name: vnfd-id
36       description: vnfd-id
37       scope: short
38       type: string
39     - name: vnf-package-id
40       description: vnf-package-id
41       scope: short
42       type: string
43     - name: vnfd-provider
44       description: vnfd-provider
45       scope: short
46       type: string
47     - name: vnfd-version
48       description: vnfd-version
49       scope: short
50       type: string
51     - name: vnf-version
52       description: vnf-version
53       scope: short
54       type: string
55     - name: csar-name
56       description: csar-name
57       scope: short
58       type: string
59
60 http:
61   service:
62     auth: none
63     mode: direct
64   request:
65     uri: /api/catalog/v1/vnfpackages/${vnf-csar-uuid}
66     method: GET
67     context:
68       remove_empty_node: true
69     body: '{}'
70     headers:
71       Content-Type: application/json
72       Accept: application/json
73   success_codes:
74     - 200
75   result_map:
76     vnfd-id: $b{$.packageInfo.vnfdId}
77     vnf-package-id: $b{$.packageInfo.vnfPackageId}
78     vnfd-provider: $b{$.packageInfo.vnfdProvider}
79     vnfd-version: $b{$.packageInfo.vnfdVersion}
80     vnf-version: $b{$.packageInfo.vnfVersion}
81     csar-name: $b{$.packageInfo.csarName}