e0036a8f774469bf3e4d02d7a670bca1f03c140b
[cli.git] / products / onap-dublin / features / vfc / src / main / resources / open-cli-schema / catalog / vfc-catalog-get-ns-descriptors-schema.yaml
1 # Copyright (c) 2019, CMCC 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: vfc-nslcm-get-ns-descriptors
17 description: VFC get ns descriptors from catalog
18
19 info:
20   product: onap-dublin
21   service: vfc
22   author: ONAP VFC Team (yangyanyj@chinamobile.com)
23
24 parameters:
25   - name: nsd-info-id
26     description: nsd's info id
27     type: string
28     short_option: c
29     long_option: nsd-info-id
30     is_optional: false
31
32 results:
33   direction: landscape
34   attributes:
35     - name: nsd-info-id
36       description: nsd-info-id
37       scope: short
38       type: string
39     - name: nsd-name
40       description: nsd-name
41       scope: short
42       type: string
43     - name: nsd-description
44       description: nsd-description
45       scope: short
46       type: string
47     - name: ns-package-id
48       description: ns-package-id
49       scope: short
50       type: string
51     - name: sdc-csar-id
52       description: sdc-csar-id
53       scope: short
54       type: string
55
56 http:
57   service:
58     auth: none
59     mode: direct
60   request:
61     uri: api/nsd/v1/ns_descriptors/${nsd-info-id}
62     method: GET
63     context:
64       remove_empty_node: true
65     body: '{}'
66     headers:
67       Content-Type: application/json
68       Accept: application/json
69   success_codes:
70     - 200
71   result_map:
72     nsd-info-id: $b{$.nsdId}
73     nsd-name: $b{$.nsdName}
74     nsd-description: $b{$.nsdDescription}
75     ns-package-id: $b{$.nsPackageId}
76     sdc-csar-id: $b{$.sdcCsarId }