1 # Copyright © Intel Corporation 2019
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 HPA Team onap-discuss@lists.onap.org
27 description: Onap Service Name
30 long_option: service-name
33 description: Description for Service
36 long_option: description
39 description: Project code
41 long_option: project-code
45 description: Service category (options are "network l4+","network l1-3","e2e service","mobility","network service","voip call control")
50 default_value: network l1-3
51 - name: category-display-name
52 description: Service category display name (Options are "Network L4+","Network L1-3","E2E Service","Network Service","Mobility","VoIP Call Control")
55 long_option: category-display-name
57 default_value: Network L1-3
59 description: Service Icon id (options are "network_l_4","network_l_1-3"[use this icon for "Network L1-3","E2E Service","Network Service"],"mobility","call_controll")
63 default_value: defaulticon
70 description: Service ID
80 uri: /sdc2/rest/v1/catalog/services
85 "contactId":"${host-username}",
87 "name":"${category-display-name}",
88 "normalizedName":"${category}",
89 "uniqueId":"serviceNewCategory.${category}",
90 "icons":["${icon-id}"],
96 "description":"${description}",
98 "componentInstancesProperties":{},
99 "componentInstancesAttributes":{},
100 "name":"${service-name}",
101 "tags":["${service-name}"],
104 "deploymentArtifacts":{},
105 "componentType":"SERVICE",
106 "projectCode":"${project-code}",
107 "componentInstances":[],
110 "forwardingPaths":{},
111 "ecompGeneratedNaming":true,
112 "serviceApiArtifacts":{},
113 "instantiationType":"A-la-carte",
114 "environmentContext":"General_Revenue-Bearing"