f22e979539de305c1f448437d5fdd9eefb7153ec
[cli.git] /
1 # Copyright 2018 Huawei Technologies Co., Ltd.\r
2 #\r
3 # Licensed under the Apache License, Version 2.0 (the "License");\r
4 # you may not use this file except in compliance with the License.\r
5 # You may obtain a copy of the License at\r
6 #\r
7 #     http://www.apache.org/licenses/LICENSE-2.0\r
8 #\r
9 # Unless required by applicable law or agreed to in writing, software\r
10 # distributed under the License is distributed on an "AS IS" BASIS,\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12 # See the License for the specific language governing permissions and\r
13 # limitations under the License.\r
14 \r
15 open_cli_schema_version: 1.0\r
16 name: logic-link-list\r
17 description: show detail for one single logic-link\r
18 \r
19 info:\r
20   product: onap-beijing\r
21   service: aai\r
22   author: ONAP CLI Team onap-discuss@lists.onap.org\r
23   \r
24 parameters:\r
25   - name: logic-link-name\r
26     description: logic-link-name\r
27     type: string\r
28     short_option: n\r
29     long_option: name\r
30     is_optional: false\r
31 \r
32 results:\r
33   direction: landscape\r
34   attributes:\r
35     - name: logic-link-name\r
36       description: Onap logic-link name\r
37       scope: short\r
38       type: string\r
39     - name: logic-link-id\r
40       description: Onap logic-link id\r
41       scope: short\r
42       type: string\r
43     - name: in-maint\r
44       description: Onap in-maint\r
45       scope: short\r
46       type: string\r
47     - name: speed-value\r
48       description: Onap speed-value \r
49       scope: short\r
50       type: string\r
51     - name: speed-units\r
52       description: Onap speed-units \r
53       scope: short\r
54       type: string\r
55     - name: prov-status\r
56       description: Onap prov-status \r
57       scope: short\r
58       type: string\r
59     - name: link-role\r
60       description: Onap link-role \r
61       scope: short\r
62       type: string\r
63     - name: resource-version\r
64       description: Onap resource-version\r
65       scope: short\r
66       type: string\r
67 http:\r
68   service:\r
69     auth: basic\r
70     mode: direct\r
71   request:\r
72     uri: /aai/v11/network/logical-links/logical-link/${logic-link-name}\r
73     method: GET\r
74   success_codes:\r
75     - 200\r
76   result_map:\r
77     logic-link-name: $b{logical-link.[*].link-name}\r
78     logic-link-id: $b{logical-link.[*].link-id}\r
79     in-maint: $b{logical-link.[*].in-maint}\r
80     speed-value: $b{logical-link.[*].speed-value}\r
81     speed-units: $b{logical-link.[*].speed-units}\r
82     prov-status: $b{logical-link.[*].prov-status}\r
83     link-role: $b{logical-link.[*].link-role}\r
84     resource-version: $b{logical-link.[*].resource-version}\r