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
74 description: Service UUID
84 uri: /sdc2/rest/v1/catalog/services
89 "contactId":"${host-username}",
91 "name":"${category-display-name}",
92 "normalizedName":"${category}",
93 "uniqueId":"serviceNewCategory.${category}",
94 "icons":["${icon-id}"],
100 "description":"${description}",
101 "icon":"defaulticon",
102 "componentInstancesProperties":{},
103 "componentInstancesAttributes":{},
104 "name":"${service-name}",
105 "tags":["${service-name}"],
108 "deploymentArtifacts":{},
109 "componentType":"SERVICE",
110 "projectCode":"${project-code}",
111 "componentInstances":[],
114 "forwardingPaths":{},
115 "ecompGeneratedNaming":true,
116 "serviceApiArtifacts":{},
117 "instantiationType":"A-la-carte",
118 "environmentContext":"General_Revenue-Bearing"