summaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/main/resources/onap-cli-schema
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-11 12:54:22 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-11 14:57:44 +0530
commitdf8e983f97280703f3920029229845fb50a8c268 (patch)
treea853f41c39481825a236e6c6462ea7358ed1ffbb /plugins/aai/src/main/resources/onap-cli-schema
parent125bd16fea326c86a1c822b39da3808a2a445537 (diff)
Add ESR EMS commands
CLI-5 Change-Id: I10c1d5cec84f0c797cbdd8b71b40ab4d0024d852 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/main/resources/onap-cli-schema')
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml79
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml33
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml75
3 files changed, 187 insertions, 0 deletions
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml
new file mode 100644
index 00000000..e0acf3b1
--- /dev/null
+++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml
@@ -0,0 +1,79 @@
+onap_cmd_schema_version: 1.0
+
+name: ems-register
+
+description: Register a EMS in Onap
+
+version: onap-1.1
+
+service:
+ name: aai
+ version: v11
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: ems-id
+ description: Onap EMS unique id
+ type: uuid
+ short_option: z
+ long_option: ems-id
+ is_optional: false
+ - name: name
+ description: Onap EMS name
+ type: string
+ short_option: b
+ long_option: name
+ is_optional: false
+ - name: type
+ description: Onap EMS type
+ type: string
+ short_option: c
+ long_option: type
+ is_optional: false
+ - name: vendor
+ description: Onap EMS vendor
+ type: string
+ short_option: e
+ long_option: vendor
+ is_optional: false
+ - name: ems-version
+ description: Onap EMS version
+ type: string
+ short_option: q
+ long_option: ems-version
+ is_optional: false
+ - name: url
+ description: Onap EMS URL
+ type: string
+ short_option: g
+ long_option: url
+ is_optional: false
+ - name: username
+ description: Onap EMS username
+ type: string
+ short_option: i
+ long_option: username
+ is_optional: false
+ - name: password
+ description: Onap EMS password
+ type: string
+ short_option: j
+ long_option: password
+ is_optional: false
+ - name: remote-path
+ description: Onap EMS remote-path
+ type: string
+ short_option: x
+ long_option: remote-path
+ is_optional: false
+
+http:
+ request:
+ uri: /aai/v11/external-system/esr-ems-list/esr-ems/{ems-id}
+ method: PUT
+ 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":""}]}}'
+ success_codes:
+ - 201
+ sample_response:
+ body: ''
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml
new file mode 100644
index 00000000..bb8521a8
--- /dev/null
+++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml
@@ -0,0 +1,33 @@
+onap_cmd_schema_version: 1.0
+
+name: ems-unregister
+
+description: Un-register a EMS in Onap
+
+version: onap-1.1
+
+service:
+ name: aai
+ version: v11
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: ems-id
+ description: Onap EMS unique id
+ type: uuid
+ short_option: x
+ long_option: ems-id
+ is_optional: false
+
+http:
+ request:
+ uri: /aai/v11/external-system/esr-ems-list/esr-ems/{ems-id}
+ method: DELETE
+
+ success_codes:
+ - 201
+ - 404
+
+ sample_response:
+ body: ''
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml
new file mode 100644
index 00000000..4756c1d5
--- /dev/null
+++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml
@@ -0,0 +1,75 @@
+onap_cmd_schema_version: 1.0
+
+name: ems-list
+
+description: List the configured ems
+
+version: onap-1.1
+
+service:
+ name: aai
+ version: v11
+ auth: basic
+ mode: direct
+
+results:
+ direction: landscape
+ attributes:
+ - name: ems-id
+ description: Onap ems id
+ scope: short
+ type: string
+ - name: name
+ description: Onap ems name
+ scope: short
+ type: string
+ - name: type
+ description: Onap ems type
+ scope: short
+ type: string
+ - name: vendor
+ description: Onap ems vendor
+ scope: short
+ type: string
+ - name: version
+ description: Onap ems version
+ scope: short
+ type: string
+ - name: url
+ description: Onap ems url
+ scope: short
+ type: string
+ - name: username
+ description: Onap ems username
+ scope: long
+ type: string
+ - name: remote-path
+ description: Onap ems remote-path
+ scope: short
+ type: string
+ - name: resource-version
+ description: Onap ems resource version
+ scope: short
+ type: string
+
+http:
+ request:
+ uri: /aai/v11/external-system/esr-ems-list
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ems-id: $b{$.esr-ems.[*].ems-id
+ name: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].system-name
+ type: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].type
+ vendor: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].vendor
+ version: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].version
+ url: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].service-url
+ username: $b{$.esr-ems.[*].esr-system-info-list.esr-system-info.[0].user-name
+ remote-path: $b{$.esr-ems.[*].remote-path
+ resource-version: $b{$.esr-ems.[*].resource-version
+
+ sample_response:
+ body: '{"esr-ems":[{"ems-id":"example-ems-id-val-36878","passive":true,"remote-path":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"ems","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}'
+
+