SDC service-model commands for onboarding
[cli.git] / products / onap-dublin / features / sdc / src / main / resources / open-cli-schema / service-model / service-model-list-schema-dublin.yaml
1 # Copyright © Intel Corporation 2019
2 #
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
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 open_cli_schema_version: 1.0
16 name: service-model-list
17 description: List the service model in SDC
18
19 info:
20   product: onap-dublin
21   service: sdc
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24
25 results:
26   direction: landscape
27   attributes:
28     - name: uuid
29       description: UUID
30       type: string
31       scope: short
32     - name: invariant-uuid
33       description: Invariant UUID
34       type: string
35       scope: short
36     - name: name
37       description: Name
38       type: string
39       scope: short
40     - name: version
41       description: version
42       type: string
43       scope: short
44     - name: status
45       description: status
46       type: string
47       scope: short
48     - name: distribution-status
49       description: status
50       type: string
51       scope: short
52     - name: description
53       description: description
54       type: string
55       scope: long
56
57 http:
58   service:
59     name: sdc
60     version: v1.0
61     auth: basic
62     mode: direct
63   request:
64     uri: /sdc2/rest/v1/followed
65     method: GET
66   success_codes:
67     - 200
68   result_map:
69     uuid: $b{services.[*].uniqueId}
70     invariant-uuid: $b{services.[*].invariantUUID}
71     version: $b{services.[*].version}
72     name: $b{services.[*].name}
73     status: $b{services.[*].lifecycleState}
74     description: $b{services.[*].description}
75     distribution-status: $b{services.[*].distributionStatus}
76