aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/aai/src/main/resources/onap-cli-schema/subscription
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-30 17:21:57 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-08-30 12:37:27 +0000
commitf548d5e40b755bc9f6537dae66c161d2f0262b17 (patch)
treeecc6a3d321ffe2e130403b59ba4267064b501a0a /plugins/aai/src/main/resources/onap-cli-schema/subscription
parentb5090c9d0808ffc44281ca250ef528d79030dce8 (diff)
Update the customer commands for 1.1
CLI-13 Change-Id: I1e95e2e29bec719cf25931e1468f92136072577e Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src/main/resources/onap-cli-schema/subscription')
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml4
-rw-r--r--plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml14
2 files changed, 11 insertions, 7 deletions
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml
index 9b86330e..19d9a8a7 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml
@@ -1,10 +1,10 @@
onap_cmd_schema_version: 1.0
name: subscription-create
-description: Create a subscription for a customer in Onap
+description: Create a subscription of a customer for given service in specific cloud region in Onap
version: onap-1.1
service:
name: aai
- version: v8
+ version: v11
auth: basic
mode: direct
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml
index b4d1093c..9a747887 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml
@@ -4,7 +4,7 @@ description: Lists the subscription for a given customer in Onap
version: onap-1.1
service:
name: aai
- version: v8
+ version: v11
auth: basic
mode: direct
@@ -23,17 +23,21 @@ results:
description: Onap service type
scope: short
type: string
-
+ - name: resource-version
+ description: Onap subscription resource version
+ scope: short
+ type: string
http:
request:
- uri: /aai/v11/business/customers/customer/${customer-name}
+ uri: /aai/v11//business/customers/customer/${customer-name}/service-subscriptions
method: GET
success_codes:
- 200
result_map:
- service-type: $b{$.service-subscriptions.service-subscription.[*].service-type}
+ service-type: $b{$.service-subscription.[*].service-type}
+ resource-version: $b{$.service-subscription.[*].resource-version}
sample_response:
- body: '{"global-customer-id":"Linan","subscriber-name":"Linan","subscriber-type":"INFRA","resource-version":"1501768482","service-subscriptions":{"service-subscription":[{"service-type":"vFW","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}},{"service-type":"vLB","resource-version":"1501768482","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"https://192.168.17.12:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants/tenant/e69e6d64b44347509c3fc512391f34a6/","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"Rackspace"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"RegionOne"},{"relationship-key":"tenant.tenant-id","relationship-value":"e69e6d64b44347509c3fc512391f34a6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"onap"}]}]}}]}}'
+ body: '{"service-subscription":[{"service-type":"vTest","resource-version":"1504091375183","relationship-list":{"relationship":[{"related-to":"tenant","related-link":"/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/26ab7af6-96cc-4c4e-814a-e533af4ef9f6","relationship-data":[{"relationship-key":"cloud-region.cloud-owner","relationship-value":"att-aic"},{"relationship-key":"cloud-region.cloud-region-id","relationship-value":"AAIAIC25"},{"relationship-key":"tenant.tenant-id","relationship-value":"26ab7af6-96cc-4c4e-814a-e533af4ef9f6"}],"related-to-property":[{"property-key":"tenant.tenant-name","property-value":"test"}]}]}}]}'