From bbf79801dd04d2fe6998fe2ada0d6d30cc60e79c Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 4 Oct 2018 14:36:39 +0530 Subject: Casablanca: AAI cloud-create Issue-ID: CLI-122 Change-Id: Ia0cf8d1e41ea730c7baee1fd7f424fb6eafcef3b Signed-off-by: Kanagaraj Manickam k00365106 --- .../cloud/cloud-create-schema-casablanca-moco.json | 24 ++++++++++++++++++++++ .../cloud-create-schema-casablanca-sample.yaml | 9 ++++++++ 2 files changed, 33 insertions(+) create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-casablanca-sample.yaml (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/infra') 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 -- cgit 1.2.3-korg