aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-10-04 14:36:39 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-10-04 14:36:39 +0530
commitbbf79801dd04d2fe6998fe2ada0d6d30cc60e79c (patch)
tree8196c136f8a172975ba6aea97e2a709bff1afb3a /products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra
parent11f11fc85edc7b3b060549f5b1516e0805d9b372 (diff)
Casablanca: AAI cloud-create
Issue-ID: CLI-122 Change-Id: Ia0cf8d1e41ea730c7baee1fd7f424fb6eafcef3b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra')
-rw-r--r--products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-moco.json24
-rw-r--r--products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-sample.yaml9
2 files changed, 33 insertions, 0 deletions
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-moco.json
new file mode 100644
index 00000000..ac9e061c
--- /dev/null
+++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-moco.json
@@ -0,0 +1,24 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-875d27b0-5136-4ac3-88b2-516803fda9d4",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "sriov-automation" : false,
+ "cloud-region-id" : "bangalore",
+ "cloud-owner" : "huawei-cloud",
+ "new-attribute-for-demo" : "blah",
+ "number-attribute-for-demo" : 1
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-sample.yaml
new file mode 100644
index 00000000..1fb24ca9
--- /dev/null
+++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: cloud-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: cloud-create
+ input: --cloud-name huawei-cloud --region-name bangalore -d
+ moco: cloud-create-schema-casablanca-moco.json
+ output: \ No newline at end of file