aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 16:55:51 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 16:55:51 +0530
commitebd0a91e0a98033dc2ac61b82fc13485ee212bf7 (patch)
treec725ec8c4bd2ad56aa456ed9bc94aed8f209dd6d /products/onap-dublin
parent5128763ab2770b258320ce4876c3464086d4cc46 (diff)
tenant samples
Change-Id: I8b01fa9555f7051c57766926836f283a678cc9b5 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json21
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json18
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json24
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml10
6 files changed, 93 insertions, 0 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json
new file mode 100644
index 00000000..f8cb2c8b
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-moco.json
@@ -0,0 +1,21 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-300c4e32-4fb2-4fe8-b238-e3cb13c2a9d1",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+ "tenant-name" : "ocomp"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml
new file mode 100644
index 00000000..7e1c543e
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-create-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-create
+version: onap-dublin
+samples:
+ sample1:
+ name: tenant-create
+ input: --format json --region RegionOVP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe --cloud OCOMP --tenant-name ocomp
+ moco: tenant-create-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json
new file mode 100644
index 00000000..417976f5
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants/tenant/6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-22a79b24-0ed5-475c-9c5e-fed1d4461bb3",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml
new file mode 100644
index 00000000..1a21b00e
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-delete-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-delete
+version: onap-dublin
+samples:
+ sample1:
+ name: tenant-delete
+ input: --format json --region RegionOVP --resource-version 1567068676263 --cloud OCOMP --tenant-id 6fcac72c-a2cd-4d18-9f1d-09908ca08afe
+ moco: tenant-delete-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json
new file mode 100644
index 00000000..ea056231
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-moco.json
@@ -0,0 +1,24 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/OCOMP/RegionOVP/tenants",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-be21d4e6-6e82-4a13-a1fb-0a2c6766e3e4",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "tenant" : [ {
+ "tenant-id" : "6fcac72c-a2cd-4d18-9f1d-09908ca08afe",
+ "tenant-name" : "ocomp",
+ "resource-version" : "1567068676263"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..c264bd0c
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/tenant/tenant-list-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: tenant-list
+version: onap-dublin
+samples:
+ sample1:
+ name: tenant-list
+ input: --format json --region RegionOVP --cloud OCOMP
+ moco: tenant-list-schema-dublin-moco.json
+ output: |
+ [{"resource-version":"1567068676263","tenant-id":"6fcac72c-a2cd-4d18-9f1d-09908ca08afe","tenant-name":"ocomp"}]