58b14ac59fac3bb62862ecc5055ec761cc421d33
[cli.git] /
1 open_cli_schema_version: 1.0
2
3 name: sdnc-register
4
5 description: Register a SDNC in Onap
6
7
8 info:
9   product: onap-amsterdam
10   service: aai
11   author: ONAP CLI Team onap-discuss@lists.onap.org
12
13 parameters:
14   - name: location
15     description: Onap VIM unique id
16     type: uuid
17     short_option: x
18     long_option:  location
19     is_optional: false
20   - name: sdnc-id
21     description: Onap SDNC unique id
22     type: uuid
23     short_option: y
24     long_option:  sdnc-id
25     is_optional: false
26   - name: name
27     description: Onap SDNC name
28     type: string
29     short_option: b
30     long_option:  name
31     is_optional: false
32   - name: type
33     description: Onap SDNC type
34     type: string
35     short_option: c
36     long_option:  type
37     is_optional: false
38   - name: vendor
39     description: Onap SDNC vendor
40     type: string
41     short_option: e
42     long_option:  vendor
43     is_optional: false
44   - name: sdnc-version
45     description: Onap SDNC version
46     type: string
47     short_option: q
48     long_option:  sdnc-version
49     is_optional: false
50   - name: ip-address
51     description: Onap SDNC ip address
52     type: string
53     short_option: g
54     long_option:  ip-address
55     is_optional: false
56   - name: port
57     description: Onap SDNC port
58     type: string
59     short_option: k
60     long_option:  port
61     is_optional: false
62   - name: protocal
63     description: Onap SDNC protocal
64     type: string
65     short_option: r
66     long_option:  protocal
67     is_optional: false
68   - name: username
69     description: Onap SDNC username
70     type: string
71     short_option: i
72     long_option:  username
73     is_optional: false
74   - name: password
75     description: Onap SDNC password
76     type: string
77     short_option: j
78     long_option:  password
79     is_optional: false
80   - name: product-name
81     description: Onap SDNC product-name
82     type: string
83     short_option: z
84     long_option: product-name
85     is_optional: false
86
87 http:
88   service:
89     auth: basic
90     mode: direct
91   request:
92     uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id}
93     method: PUT
94     body: '{"thirdparty-sdnc-id":"${sdnc-id}","location":"${location}","product-name":"${product-name}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${sdnc-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${sdnc-version}","service-url":"","user-name":"${username}","password":"${password}","system-type":"sdnc","protocal":"${protocal}","ssl-cacert":"","ssl-insecure":"","ip-address":"${ip-address}","port":"${port}","cloud-domain":"","default-tenant":""}]}}'
95   success_codes:
96     - 201
97   sample_response:
98     body: ''