5de269e42966178ead9665404554f2fe678379f0
[cli.git] /
1 # Copyright 2019 Huawei Technologies Co., Ltd.
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: sdc-consumer-show
17 description: Retrieve SDC consumer
18
19 info:
20   product: onap-dublin
21   service: sdc
22   author: ONAP CLI Team onap-discuss@lists.onap.org
23
24 parameters:
25   - name: consumer-name
26     description: Consumer Name
27     type: string
28     short_option: x
29     long_option: consumer-name
30     is_optional: false
31   - name: user-id
32     description: Designer user id
33     type: string
34     long_option: user-id
35     short_option: e
36     default_value: jh0003
37     is_optional: true
38 results:
39   direction: portrait
40   attributes:
41     - name: consumer-password
42       description: Consumer password
43       type: string
44       scope: short
45     - name: salt
46       description: Salt
47       type: string
48       scope: short
49
50 http:
51   service:
52     name: sdc
53     version: v1.0
54     auth: none
55     mode: direct
56   request:
57     uri: /sdc2/rest/v1/consumers/${consumer-name}
58     method: GET
59     headers:
60       USER_ID: ${user-id}
61   success_codes:
62     - 200
63     - 201
64   result_map:
65     consumer-password: $b{$.consumerPassword}
66     salt: $b{$.consumerSalt}