aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:43:12 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:43:12 +0530
commit5824545d1f67949109a23113bd01dfc7499e8a0e (patch)
treebd761585fca2a59b399e3cbcf4687c34088a5127 /products/onap-dublin/features
parent1ce99a7a96e51e5830530c1abd5d59c9b82bb93b (diff)
cloud-list updates
Change-Id: I3fecc534d173348d06a03bfabac9d7f9af1d9b4e Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json63
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml10
2 files changed, 73 insertions, 0 deletions
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
index 00000000..a956ad36
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json
@@ -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
index 00000000..69806c7e
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml
@@ -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"}]