bd00aee88dff85078744dd1c1cfc3b4418090808
[cli.git] / products / onap-amsterdam / features / aai / src / main / resources / open-cli-schema / esr / ems / ems-create-schema-1.1.yaml
1 open_cli_schema_version: 1.0
2
3 name: ems-register
4
5 description: Register a EMS 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: ems-id
15     description: Onap EMS unique id
16     type: uuid
17     short_option: z
18     long_option:  ems-id
19     is_optional: false
20   - name: name
21     description: Onap EMS name
22     type: string
23     short_option: b
24     long_option:  name
25     is_optional: false
26   - name: type
27     description: Onap EMS type
28     type: string
29     short_option: c
30     long_option:  type
31     is_optional: false
32   - name: vendor
33     description: Onap EMS vendor
34     type: string
35     short_option: e
36     long_option:  vendor
37     is_optional: false
38   - name: ems-version
39     description: Onap EMS version
40     type: string
41     short_option: q
42     long_option:  ems-version
43     is_optional: false
44   - name: url
45     description: Onap EMS URL
46     type: string
47     short_option: g
48     long_option:  url
49     is_optional: false
50   - name: username
51     description: Onap EMS username
52     type: string
53     short_option: i
54     long_option:  username
55     is_optional: false
56   - name: password
57     description: Onap EMS password
58     type: string
59     short_option: j
60     long_option:  password
61     is_optional: false
62   - name: remote-path
63     description: Onap EMS remote-path
64     type: string
65     short_option: x
66     long_option: remote-path
67     is_optional: false
68
69 http:
70   service:
71     auth: basic
72     mode: direct
73   request:
74     uri: /aai/v11/external-system/esr-ems-list/esr-ems/${ems-id}
75     method: PUT
76     body: '{"ems-id":"${ems-id}","passive":true,"remote-path":"${remote-path}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${ems-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${ems-version}","service-url":"${url}","user-name":"${username}","password":"${password}","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":"","ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}'
77   success_codes:
78     - 201
79   sample_response:
80     body: ''