diff options
author | 2019-03-13 22:31:13 +0000 | |
---|---|---|
committer | 2019-03-13 22:31:13 +0000 | |
commit | 143b0ebc6b52cebc4955f227553b2abe83c9cd84 (patch) | |
tree | 11ae425d14c5aa521d29ba432daa8b5d8979c2f5 /products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml | |
parent | 65d9d65c6e3bf9f4f5590a3ba3d9234b63c04596 (diff) |
Subscription schema files for onap-dublin CLI
-Updated subscription-create to use cloud-parameters
-New command to add newcloud to already existing subscription
Change-Id: I25abaae4286bf67bdcf074c2b7552e654c3acb0c
Issue-ID: CLI-134 CLI-153
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Diffstat (limited to 'products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml')
-rw-r--r-- | products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml | 54 |
1 files changed, 45 insertions, 9 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml index 19f144d2..6623b9e7 100644 --- a/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/business/subscription/subscription-create-schema-dublin.yaml @@ -19,7 +19,7 @@ description: Create a subscription of a customer for given service in specific c info: product: onap-dublin service: aai - author: ONAP CLI Team onap-discuss@lists.onap.org + author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com) parameters: - name: customer-name @@ -28,41 +28,77 @@ parameters: short_option: x long_option: customer-name is_optional: false - - name: cloud-name - description: Onap cloud name + - name: cloud-owner + description: Onap cloud owner name type: string short_option: z - long_option: cloud-name - is_optional: true + long_option: cloud-owner + is_optional: false - name: cloud-region description: Onap cloud region type: string short_option: r long_option: cloud-region - is_optional: true + is_optional: false - name: cloud-tenant-id description: Onap cloud tenant id type: string short_option: c long_option: cloud-tenant-id - is_optional: true + is_optional: false - name: service-type description: Onap service type type: string short_option: e long_option: service-type is_optional: false + - name: tenant-name + description: name of tenant to use in the cloud region + type: string + short_option: y + long_option: tenant-name + is_optional: false http: service: auth: basic mode: direct request: - uri: /aai/v13/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} + uri: /aai/v14/business/customers/customer/${customer-name}/service-subscriptions/service-subscription/${service-type} method: PUT context: remove_empty_node: true - body: '{"service-type":"${service-type}"}' + body: '{ + "service-type": "${service-type}", + "relationship-list": { + "relationship": [ + { + "related-to": "tenant", + "relationship-label": "org.onap.relationships.inventory.Uses", + "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/tenants/tenant/${cloud-tenant-id}", + "relationship-data": [ + { + "relationship-key": "cloud-region.cloud-owner", + "relationship-value": "${cloud-owner}" + }, + { + "relationship-key": "cloud-region.cloud-region-id", + "relationship-value": "${cloud-region}" + }, + { + "relationship-key": "tenant.tenant-id", + "relationship-value": "${cloud-tenant-id}" + } + ], + "related-to-property": [ + { + "property-key": "tenant.tenant-name", + "property-value": "${tenant-name}" + } + ] + } + ] + } }' success_codes: - 200 - 201 |