1 # Copyright 2018 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 open_cli_schema_version: 1.0
16 name: service-model-create
17 description: Create Service model in SDC
22 author: ONAP CLI Team onap-discuss@lists.onap.org
27 description: Onap Service Name
33 description: Description for Service
36 long_option: description
39 description: Project code
41 long_option: project-code
45 description: Service category
50 default_value: network l1-3
51 - name: category-display-name
52 description: Service category display name
55 long_option: category-display-name
57 default_value: Network L1-3
59 description: Service Icon id
63 default_value: defaulticon
70 description: Service ID
80 uri: /sdc2/rest/v1/catalog/services
82 body: '{"componentType": "SERVICE", "properties": [], "requirements": {}, "toscaArtifacts": {}, "tags": ["CLI", "${name}"], "artifacts": {}, "description": "${description}", "serviceApiArtifacts": {}, "capabilities": {}, "name": "${name}", "componentInstancesProperties": {}, "componentInstancesAttributes": {}, "contactId": "${onap-username}", "groups": [], "projectCode": "${project-code}", "deploymentArtifacts": {}, "attributes": [], "componentInstances": [], "categories": [{"normalizedName": "${category}", "name": "${category-display-name}", "uniqueId": "serviceNewCategory.${category}", "icons": ["${icon-id}"]}], "icon": "${icon-id}"}'