1 # Copyright 2018 Huawei Technologies Co., Ltd.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 open_cli_schema_version: 1.0
16 name: microservice-list
17 description: Lists the registetred micro services in Onap
21 product: onap-casablanca
23 author: ONAP CLI Team onap-discuss@lists.onap.org
29 description: Onap service name
33 description: Onap service version
37 description: Onap service base url
41 description: Onap service status
45 description: Onap service running nodes
49 description: Onap service is enabled with https or not
53 description: Onap service path
61 uri: /api/microservices/v1/services
67 name: $b{$.[*].serviceName}
68 version: $b{$.[*].version}
70 status: $b{$.[*].status}
71 enable-ssl: $b{$.[*].enable_ssl}
73 nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
75 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"}]'