diff options
author | 2018-10-04 14:39:01 +0530 | |
---|---|---|
committer | 2018-10-04 14:39:01 +0530 | |
commit | dfe02bb20d5e012dcaaacb2837bd932149ad1714 (patch) | |
tree | 9f1cee8f0e655ad41bc76c0bf26e3a389cc8c627 /products/onap-casablanca/features/aai/src/main/resources/open-cli-sample | |
parent | bbf79801dd04d2fe6998fe2ada0d6d30cc60e79c (diff) |
Casablanca: AAI cloud-list
Issue-ID: CLI-122
Change-Id: I20a96278a339d15382780d90e8e34e8370260ef9
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample')
2 files changed, 39 insertions, 0 deletions
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json new file mode 100644 index 00000000..c539ac40 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-moco.json @@ -0,0 +1,25 @@ +[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-8465f051-c389-40ff-9a5c-8c7e1ac01b7c",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "cloud-region" : [ {
+ "cloud-owner" : "huawei-cloud",
+ "cloud-region-id" : "bangalore",
+ "sriov-automation" : "false",
+ "resource-version" : "1538643783460"
+ } ]
+ }
+ }
+} ]
\ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..6896428d --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: cloud-list +version: onap-casablanca +samples: + sample1: + name: cloud-list + input: + moco: cloud-list-schema-casablanca-moco.json + output: | + +--------------+------------+------------------+ + |cloud |region |resource-version | + +--------------+------------+------------------+ + |huawei-cloud |bangalore |1538643783460 | + +--------------+------------+------------------+ |