From 5824545d1f67949109a23113bd01dfc7499e8a0e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam Date: Thu, 29 Aug 2019 16:43:12 +0530 Subject: cloud-list updates Change-Id: I3fecc534d173348d06a03bfabac9d7f9af1d9b4e Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 --- .../infra/cloud/cloud-list-schema-dublin-moco.json | 63 ++++++++++++++++++++++ .../cloud/cloud-list-schema-dublin-sample.yaml | 10 ++++ 2 files changed, 73 insertions(+) create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-moco.json create mode 100644 products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-dublin-sample.yaml (limited to 'products/onap-dublin') 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"}] -- cgit 1.2.3-korg