91f847f35185f78e3b4affbe7f07411799c23788
[cli.git] /
1 open_cli_schema_version: 1.0
2 name: microservice-list
3 description: Lists the registetred micro services in Onap
4
5
6 info:
7   product: onap-amsterdam
8   service: msb
9   author: ONAP CLI Team onap-discuss@lists.onap.org
10
11 results:
12   direction: landscape
13   attributes:
14     - name: name
15       description: Onap service name
16       scope: short
17       type: string
18     - name: version
19       description: Onap service version
20       scope: short
21       type: string
22     - name: url
23       description: Onap service base url
24       scope: short
25       type: url
26     - name: status
27       description: Onap service status
28       scope: short
29       type: digit
30     - name: nodes
31       description: Onap service running nodes
32       scope: long
33       type: json
34     - name: enable-ssl
35       description: Onap service is enabled with https or not
36       scope: long
37       type: string
38     - name: path
39       description: Onap service path
40       scope: long
41       type: string
42 http:
43   service:
44     auth: none
45     mode: direct
46   request:
47     uri: /services
48     method: GET
49   success_codes:
50     - 201
51     - 200
52   result_map:
53     name: $b{$.[*].serviceName}
54     version: $b{$.[*].version}
55     url: $b{$.[*].url}
56     status: $b{$.[*].status}
57     enable-ssl: $b{$.[*].enable_ssl}
58     path: $b{$.[*].path}
59     nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
60   sample_response:
61     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"}]'
62
63
64
65