Merge "Bug Fixes in ONAP CLI"
[cli.git] / products / onap-dublin / features / so / src / main / resources / open-cli-schema / service-show-resource-module-name-schema-dublin.yaml
1 #  Copyright © Intel Corporation 2019\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: service-show-resource-module-name\r
17 description: Show a resource module name from SO\r
18 \r
19 info:\r
20   product: onap-dublin\r
21   service: so\r
22   author: ONAP CLI Team onap-discuss@lists.onap.org\r
23 \r
24 parameters:\r
25 - name: service-id\r
26   description: unique id for service instance\r
27   type: string\r
28   short_option: s\r
29   long_option: service-instace-id\r
30   is_optional: false\r
31 \r
32 results:\r
33   direction: landscape\r
34   attributes:\r
35   - name: name\r
36     description: Onap resource module name\r
37     scope: short\r
38     type: string\r
39 \r
40 \r
41 http:\r
42   service:\r
43     name: so\r
44     version: v6\r
45     auth: basic\r
46     mode: direct\r
47   request:\r
48     uri: /onap/so/infra/serviceInstances/v6/${service-id}\r
49     method: GET\r
50   success_codes:\r
51   - 201\r
52   - 200\r
53   result_map:\r
54     name: $b{$.[*].serviceName}\r
55   sample_response:\r
56     body: '{\r
57               "requestReferences":{\r
58                  "instanceId":"${instance-id}",\r
59                  "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
60               }\r
61            }'\r