2983d185a0223b51cb3027d01b43337f0fd10c15
[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-nslcm-get
17 description: vfc nsclm get the status of creating ns
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: ns-instance-id
26     description: ns's instance id
27     type: string
28     short_option: c
29     long_option: ns-instance-id
30     is_optional: false
31
32 results:
33   direction: landscape
34   attributes:
35     - name: ns-instance-id
36       description: ns-instance-id
37       scope: short
38       type: string
39     - name: ns-name
40       description: ns-name
41       scope: short
42       type: string
43     - name: description
44       description: description
45       scope: short
46       type: string
47     - name: nsd-id
48       description: nsd-id
49       scope: short
50       type: string
51
52 http:
53   service:
54     auth: none
55     mode: direct
56   request:
57     uri: /api/nslcm/v1/ns/${ns-instance-id}
58     method: GET
59     context:
60       remove_empty_node: true
61     body: '{}'
62     headers:
63       Content-Type: application/json
64       Accept: application/json
65   success_codes:
66     - 200
67   result_map:
68     ns-instance-id: $b{$.nsInstanceId}
69     ns-name: $b{$.nsName}
70     description: $b{$.description}
71     nsd-id: $b{$.nsdId}