13de1030b7227869a47414ab8c4120ba79c54b2e
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: microservice-show
3 description: Details the registered microservice in Onap
4
5 info:
6   product: onap-amsterdam
7   service: msb
8   author: ONAP CLI Team onap-discuss@lists.onap.org
9
10 parameters:
11   - name: service-name
12     description: Onap service name
13     type: string
14     short_option: x
15     long_option: service-name
16     is_optional: false
17   - name: service-version
18     description: Onap service version
19     type: string
20     short_option: y
21     long_option: service-version
22     is_optional: false
23 results:
24   direction: portrait
25   attributes:
26     - name: name
27       description: Onap service name
28       scope: short
29       type: string
30     - name: version
31       description: Onap service version
32       scope: short
33       type: string
34     - name: url
35       description: Onap service base url
36       scope: short
37       type: url
38     - name: status
39       description: Onap service status
40       scope: short
41       type: digit
42     - name: nodes
43       description: Onap service running nodes
44       scope: long
45       type: json
46     - name: enable-ssl
47       description: Onap service is enabled with https or not
48       scope: long
49       type: string
50     - name: path
51       description: Onap service path
52       scope: long
53       type: string
54 http:
55   service:
56     auth: none
57     mode: direct
58   request:
59     uri: /services/${service-name}/version/${service-version}
60     method: GET
61   success_codes:
62     - 201
63     - 200
64   result_map:
65     name: $b{$.serviceName}
66     version: $b{$.version}
67     url: $b{$.url}
68     status: $b{$.status}
69     enable-ssl: $b{$.enable_ssl}
70     path: $b{$.path}
71     nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
72   sample_response:
73     body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}'
74
75
76
77