summaryrefslogtreecommitdiffstats
path: root/products/onap-beijing/features/aai/src/main/resources/open-cli-sample
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:12:52 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:12:52 +0530
commit30ba4feb3a9075d816d36e053d735ab82c51de3d (patch)
tree63844ff2b38fe3f9df79595f2c349ae72c805cde /products/onap-beijing/features/aai/src/main/resources/open-cli-sample
parent42ac0c37a869851cc369e99483bff8c0fe99b2c3 (diff)
CLI: subscription-list beijing
Change-Id: I01374e99e060a22bba76874821a20fc6d9a34f3c Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing/features/aai/src/main/resources/open-cli-sample')
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-moco.json43
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-sample.yaml28
2 files changed, 71 insertions, 0 deletions
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-moco.json
new file mode 100644
index 00000000..9565db34
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-moco.json
@@ -0,0 +1,43 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v11/business/customers/customer/kanag/service-subscriptions",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-fd86411d-c6ea-4af5-a4f8-2296587b832b",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "service-subscription" : [ {
+ "service-type" : "vFW-kanag",
+ "resource-version" : "1509079144326",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "tenant",
+ "related-link" : "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore/tenants/tenant/e18173e6-6a13-4614-a13c-3859e7321103",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "huawei-cloud"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "bangalore"
+ }, {
+ "relationship-key" : "tenant.tenant-id",
+ "relationship-value" : "e18173e6-6a13-4614-a13c-3859e7321103"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "tenant.tenant-name",
+ "property-value" : "kanag-tenant"
+ } ]
+ } ]
+ }
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-list-schema-beijing-sample.yaml
new file mode 100644
index 00000000..5618bc14
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/subscription/subscription-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: subscription-list
+version: onap-beijing
+samples:
+ sample1:
+ name: subscription-list
+ input: --customer-name kanag
+ moco: subscription-list-schema-1.1-moco.json
+ output: |
+ +--------------+------------------+
+ |service-type |resource-version |
+ +--------------+------------------+
+ |vFW-kanag |1509079144326 |
+ +--------------+------------------+