diff options
author | Itohan Ukponmwan <itohan.ukponmwan@intel.com> | 2019-03-12 18:40:51 +0000 |
---|---|---|
committer | Itohan Ukponmwan <itohan.ukponmwan@intel.com> | 2019-03-13 19:15:27 +0000 |
commit | 6f18cddb550cd60037563ce763e98d835e695bef (patch) | |
tree | 0ab4872b9ae6bfe786b09539fdaab65d35443dbd /products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml | |
parent | 65d9d65c6e3bf9f4f5590a3ba3d9234b63c04596 (diff) |
complex schema files for onap-dublin CLI
New complex commands for the onap-dublin CLI
Change-Id: I6ac2061a58055caea71d777871105221d600895e
Issue-ID: CLI-131 CLI-132
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Diffstat (limited to 'products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml')
-rw-r--r-- | products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml new file mode 100644 index 00000000..cdc05baf --- /dev/null +++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/complex/complex-associate-schema-dublin.yaml @@ -0,0 +1,61 @@ +# Copyright © Intel Corporation 2019 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: complex-associate +description: Associate a cloud region with a cloud complex + +info: + product: onap-dublin + service: aai + author: Intel ONAP HPA integration team (itohan.ukponmwan@intel.com) + +parameters: + - name: complex-name + description: name of cloud complex + type: string + short_option: x + long_option: complex-name + is_optional: false + - name: cloud-region + description: name of registered cloud-region + type: string + short_option: y + long_option: cloud-region + is_optional: false + - name: cloud-owner + description: name of cloud-owner + type: string + short_option: z + long_option: cloud-owner + is_optional: false + +http: + service: + auth: basic + mode: direct + request: + uri: /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/relationship-list/relationship + method: PUT + body: '{ + "related-to": "complex", + "related-link": "/aai/v11/cloud-infrastructure/complexes/complex/${complex-name}", + "relationship-data": [ + { + "relationship-key": "complex.physical-location-id", + "relationship-value": "${complex-name}" + }] + }' + success_codes: + - 200 |