diff options
author | 2018-03-19 16:17:11 +0530 | |
---|---|---|
committer | 2018-03-19 16:17:11 +0530 | |
commit | 3d832b53d0e3a017baf2757865db891a9e502973 (patch) | |
tree | ac9429f53ef5b691cba561c198e65f0765a96f46 /products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf | |
parent | f5d36d858b56ce21d834e96c68e098281e3b3b84 (diff) |
CLI: vf-model-create beijing
Change-Id: I7e6ecae3c549d5c4f070ba25c134024a1fe25f97
Issue-ID: CLI-100
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf')
-rw-r--r-- | products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-beijing.yaml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-beijing.yaml new file mode 100644 index 00000000..858dee8e --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-beijing.yaml @@ -0,0 +1,77 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# 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: vf-model-create +description: Create Virtual function from Vendor Software Product + +info: + product: onap-beijing + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: name + description: Onap VF Name + type: string + short_option: x + long_option: name + is_optional: false + - name: description + description: Description for VF + type: string + short_option: y + long_option: description + is_optional: true + - name: vendor-name + description: Vendor name + type: string + long_option: vendor-name + short_option: z + is_optional: true + - name: vsp-id + description: VSP ID + type: string + long_option: vsp-id + short_option: b + is_optional: true + - name: vsp-version + description: VSP version + type: string + long_option: vsp-version + short_option: g + is_optional: true +results: + direction: portrait + attributes: + - name: ID + description: VF ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources + method: POST + body: '{"contactId": "${onap-username}", "vendorRelease": "1.0", "requirements": {}, "artifacts": {}, "capabilities": {}, "componentInstancesProperties": {}, "deploymentArtifacts": {}, "icon": "defaulticon", "vendorName": "${vendor-name}", "description": "${description}", "tags": ["CLI", "${name}"], "groups": [], "properties": [], "categories": [{"subcategories": [{"normalizedName": "abstract", "name": "Abstract", "uniqueId": "resourceNewCategory.generic.abstract", "icons": ["database"]}], "normalizedName": "generic", "name": "Generic", "uniqueId": "resourceNewCategory.generic"}], "name": "${name}", "toscaArtifacts": {}, "csarUUID": "${vsp-id}", "resourceType": "VF", "csarVersion": "${vsp-version}", "componentType": "RESOURCE", "componentInstancesAttributes": {}, "attributes": [], "componentInstances": []}' + success_codes: + - 201 + result_map: + ID: $b{$.uniqueId} + |