aboutsummaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
Diffstat (limited to 'products')
-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"}]