summaryrefslogtreecommitdiffstats
path: root/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-10-04 15:16:24 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-10-04 15:16:24 +0530
commitc749eb98844c57c9e289501ca858958c82de933e (patch)
tree017634823f09c416b39c8c6bf9d3a3ca18431966 /products/onap-casablanca/features/aai/src/main/resources/open-cli-sample
parent4e98e8ba158c3eed1b508c58687b42e786ea3a77 (diff)
Casablanca: AAI vim-list
Issue-ID: CLI-122 Change-Id: Iba264dc5e026f916a384f13ac85b87ec5b958f2f Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample')
-rw-r--r--products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json37
-rw-r--r--products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml14
2 files changed, 51 insertions, 0 deletions
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json
new file mode 100644
index 00000000..a94cd712
--- /dev/null
+++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json
@@ -0,0 +1,37 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore/esr-system-info-list",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-7794bfc8-0fc6-4760-a1e2-c7f7234df42b",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "esr-system-info" : [ {
+ "esr-system-info-id" : "6a47cd3d-a24c-4d71-b47d-bfe729acce7b",
+ "system-name" : "vim-onap",
+ "type" : "OpenStack",
+ "vendor" : "Devstack",
+ "version" : "ocata",
+ "service-url" : "http://192.168.16.149/identity",
+ "user-name" : "onap",
+ "password" : "onap",
+ "system-type" : "vim",
+ "ssl-cacert" : "",
+ "ssl-insecure" : false,
+ "ip-address" : "",
+ "port" : "",
+ "cloud-domain" : "default",
+ "default-tenant" : "onap",
+ "resource-version" : "1538644383786"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..e9249578
--- /dev/null
+++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml
@@ -0,0 +1,14 @@
+open_cli_sample_version: 1.0
+name: vim-list
+version: onap-casablanca
+samples:
+ sample1:
+ name: vim-list
+ input: --cloud-name huawei-cloud --region-name bangalore
+ moco: vim-list-schema-casablanca-moco.json
+ output: |
+ +--------------------------------------+----------+----------+----------------+------------------+
+ |vim-id |name |vendor |default-tenant |resource-version |
+ +--------------------------------------+----------+----------+----------------+------------------+
+ |6a47cd3d-a24c-4d71-b47d-bfe729acce7b |vim-onap |Devstack |onap |1538644383786 |
+ +--------------------------------------+----------+----------+----------------+------------------+