From 0036212a81245ca1e55014ab3196557734adda00 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Thu, 21 Mar 2019 11:01:00 +0800 Subject: Add vfc nslcm operation in onap dublin Change-Id: I5f332ce6922cc2cf88c3761333f5d45ef5d60f11 Issue-ID: CLI-149 Signed-off-by: Haibin Huang --- .../nslcm/vfc-nslcm-create-schema.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml') diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml new file mode 100644 index 00000000..0577d30f --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-schema/nslcm/vfc-nslcm-create-schema.yaml @@ -0,0 +1,62 @@ +# 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: vfc-nslcm-create +description: vfc nslcm create ns + +info: + product: onap-dublin + service: vfc + author: ONAP HPA Integration Team (haibin.huang@intel.com) + +parameters: + - name: ns-csar-uuid + description: ns's uuid of csar file + type: string + short_option: c + long_option: ns-csar-uuid + is_optional: false + - name: ns-csar-name + description: ns's name of csar + type: string + short_option: n + long_option: ns-csar-name + is_optional: false + +results: + direction: landscape + attributes: + - name: ns-instance-id + description: ns-instance-id + scope: short + type: string + +http: + service: + auth: none + mode: direct + request: + uri: /api/nslcm/v1/ns + method: POST + context: + remove_empty_node: true + body: '{"csarId": "${ns-csar-uuid}", "nsName": "${ns-csar-name}"}' + headers: + Content-Type: application/json + Accept: application/json + success_codes: + - 201 + result_map: + ns-instance-id: $b{$.nsInstanceId} -- cgit 1.2.3-korg