cloud-list updates 32/94532/1
authorKanagaraj Manickam <mkr1481@gmail.com>
Thu, 29 Aug 2019 11:13:12 +0000 (16:43 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Thu, 29 Aug 2019 11:13:12 +0000 (16:43 +0530)
Change-Id: I3fecc534d173348d06a03bfabac9d7f9af1d9b4e
Issue-ID: CLI-166
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json [new file with mode: 0644]
products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml [new file with mode: 0644]

diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json
new file mode 100644 (file)
index 0000000..a956ad3
--- /dev/null
@@ -0,0 +1,63 @@
+[ {
+  "request" : {
+    "method" : "get",
+    "uri" : "/aai/v13/cloud-infrastructure/cloud-regions",
+    "headers" : {
+      "Authorization" : "Basic QUFJOkFBSQ==",
+      "X-FromAppId" : "ONAP CLI",
+      "Accept" : "application/json",
+      "X-TransactionId" : "req-66435ecc-bdd6-41ad-8ffe-e00f7b18064a",
+      "Content-Type" : "application/json"
+    },
+    "json" : null
+  },
+  "response" : {
+    "status" : 200,
+    "json" : {
+      "cloud-region" : [ {
+        "cloud-owner" : "CloudOwner",
+        "cloud-region-id" : "RegionOne",
+        "cloud-type" : "SharedNode",
+        "owner-defined-type" : "OwnerType",
+        "cloud-region-version" : "v1",
+        "cloud-zone" : "CloudZone",
+        "resource-version" : "1564455111890",
+        "relationship-list" : {
+          "relationship" : [ {
+            "related-to" : "complex",
+            "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+            "related-link" : "/aai/v13/cloud-infrastructure/complexes/complex/clli2",
+            "relationship-data" : [ {
+              "relationship-key" : "complex.physical-location-id",
+              "relationship-value" : "clli2"
+            } ]
+          } ]
+        }
+      }, {
+        "cloud-owner" : "OCOMP",
+        "cloud-region-id" : "RegionOVP",
+        "cloud-type" : "OpenStack",
+        "owner-defined-type" : "ocomp",
+        "cloud-region-version" : "ocata",
+        "identity-url" : "http://10.12.11.1:5000/v3",
+        "cloud-zone" : "az1",
+        "complex-name" : "ocomp-region",
+        "sriov-automation" : "false",
+        "cloud-extra-info" : "{\"openstack-region-id\":\"RegionOVP\"}",
+        "resource-version" : "1567068896092"
+      }, {
+        "cloud-owner" : "OCOMP",
+        "cloud-region-id" : "ONAP-POD-01-Rail-05",
+        "cloud-type" : "OpenStack",
+        "owner-defined-type" : "ocomp",
+        "cloud-region-version" : "ocata",
+        "identity-url" : "http://10.12.11.1:5000/v3",
+        "cloud-zone" : "az1",
+        "complex-name" : "ocomp-cloud-complex",
+        "sriov-automation" : "false",
+        "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-05\"}",
+        "resource-version" : "1566891032056"
+      } ]
+    }
+  }
+} ]
\ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml
new file mode 100644 (file)
index 0000000..69806c7
--- /dev/null
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: cloud-list
+version: onap-dublin
+samples:
+  sample1:
+    name: cloud-list
+    input: --format json
+    moco: cloud-list-schema-dublin-moco.json
+    output: |
+      [{"cloud":"CloudOwner","resource-version":"1564455111890","region":"RegionOne"},{"cloud":"OCOMP","resource-version":"1567068896092","region":"RegionOVP"},{"cloud":"OCOMP","resource-version":"1566891032056","region":"ONAP-POD-01-Rail-05"}]