aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra
diff options
context:
space:
mode:
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