diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 15:45:43 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2018-03-19 15:46:43 +0530 |
commit | 7e09ab34db41db06c1ef03f2982f648808a36eff (patch) | |
tree | ced6fba937d1c635a88c2254712c3de6535a3cf3 /products/onap-beijing/features/aai/src/main/resources/open-cli-sample | |
parent | 144972aed66c5289e2f63e2d1f3719041b6ab830 (diff) |
CLI: ems-list beijing
Issue-ID: CLI-100
Change-Id: I3fa95b06839e3e5db34c98fb6e192483b8da9ffb
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing/features/aai/src/main/resources/open-cli-sample')
2 files changed, 51 insertions, 0 deletions
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-moco.json new file mode 100644 index 00000000..b3b4738c --- /dev/null +++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-moco.json @@ -0,0 +1,23 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v11/external-system/esr-ems-list", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-ed3e792b-9436-4ddd-ba76-3684dca3e4cf", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "esr-ems" : [ { + "ems-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554", + "resource-version" : "1509095358658" + } ] + } + } +} ]
\ No newline at end of file diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-sample.yaml new file mode 100644 index 00000000..64d98541 --- /dev/null +++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/esr/ems/ems-list-schema-beijing-sample.yaml @@ -0,0 +1,28 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_sample_version: 1.0 +name: ems-list +version: onap-beijing +samples: + sample1: + name: ems-list + input: + moco: ems-list-schema-1.1-moco.json + output: | + +--------------------------------------+------------------+ + |ems-id |resource-version | + +--------------------------------------+------------------+ + |51a480ed-649c-4c47-a84b-f966dc4f9554 |1509095358658 | + +--------------------------------------+------------------+ |