1 # Copyright © Intel Corporation 2019
\r
3 # Licensed under the Apache License, Version 2.0 (the "License");
\r
4 # you may not use this file except in compliance with the License.
\r
5 # You may obtain a copy of the License at
\r
7 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 # Unless required by applicable law or agreed to in writing, software
\r
10 # distributed under the License is distributed on an "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 # See the License for the specific language governing permissions and
\r
13 # limitations under the License.
\r
15 open_cli_schema_version: 1.0
\r
16 name: service-create
\r
17 description: Create a service instance using SO
\r
20 product: onap-elalto
\r
22 author: ONAP CLI Team onap-discuss@lists.onap.org
\r
25 - name: model-invariant-id
\r
26 description: model invariant id generated by ASDC.
\r
29 long_option: model-invariant-id
\r
32 description: model uuid generated by ASDC.
\r
35 long_option: model-uuid
\r
38 description: model name as provided in ASDC design time.
\r
41 long_option: model-name
\r
43 - name: model-version
\r
44 description: model-version
\r
47 long_option: model-version
\r
49 - name: model-version-id
\r
50 description: model-version-id
\r
53 long_option: model-version-id
\r
56 description: unique id for customer
\r
59 long_option: customer
\r
61 - name: requestor-id
\r
62 description: requestor ID
\r
65 long_option: requestor-id
\r
67 - name: instance-name
\r
68 description: service instance name
\r
71 long_option: instance-name
\r
73 - name: supress-rollback
\r
74 description: rollback changes if instantiation fails.
\r
77 long_option: supress-rollback
\r
79 - name: service-type
\r
80 description: subscription service type
\r
83 long_option: service-type
\r
86 description: ala carte flag, defaults to true
\r
89 long_option: ala-carte
\r
92 - name: customer-latitude
\r
93 description: customer latitude, part of customer location
\r
96 long_option: customer-latitude
\r
98 - name: customer-longitude
\r
99 description: customer longitude, part of customer location
\r
102 long_option: customer-longitude
\r
104 - name: customer-name
\r
105 description: customer name, part of customer location
\r
108 long_option: customer-name
\r
110 - name: homing-solution
\r
111 description: homing solution to use [oof|sniro]
\r
114 long_option: homing-solution
\r
116 - name: orchestrator
\r
117 description: orchestrator to use [multicloud|openstack(default)]
\r
120 long_option: orchestrator
\r
123 description: api to use [GR_API|VNF_API]
\r
128 default_value: GR_API
\r
129 - name: subscriber-name
\r
130 description: subscriber name
\r
133 long_option: subscriber-name
\r
135 - name: project-name
\r
136 description: project name
\r
139 long_option: project-name
\r
141 - name: owning-entity-id
\r
142 description: owning entity id
\r
145 long_option: owning-entity-id
\r
147 - name: owning-entity-name
\r
148 description: owning entity name
\r
151 long_option: owning-entity-name
\r
155 direction: portrait
\r
158 description: instance id for the created service.
\r
168 uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances
\r
173 "modelType":"service",
\r
174 "modelInvariantId":"${model-invariant-id}",
\r
175 "modelUuid":"${model-uuid}",
\r
176 "modelName":"${model-name}",
\r
177 "modelVersion":"${model-version}",
\r
178 "modelVersionId":"${model-version-id}",
\r
179 "modelInvariantUuid" : "${model-invariant-id}"
\r
182 "globalSubscriberId":"${customer}",
\r
183 "subscriberName":"${subscriber-name}"
\r
186 "requestorId":"${requestor-id}",
\r
187 "instanceName":"${instance-name}",
\r
189 "suppressRollback":"${supress-rollback}"
\r
191 "requestParameters":{
\r
192 "subscriptionServiceType":"${service-type}",
\r
193 "aLaCarte":"${ala-carte}",
\r
194 "testApi":"${api}",
\r
197 "name":"Customer_Location",
\r
199 "customerLatitude":"${customer-latitude}",
\r
200 "customerLongitude":"${customer-longitude}",
\r
201 "customerName":"${customer-name}"
\r
205 "name":"Homing_Solution",
\r
206 "value":"${homing-solution}"
\r
209 "name":"orchestrator",
\r
210 "value":"${orchestrator}"
\r
215 "projectName":"${project-name}"
\r
218 "owningEntityId":"${owning-entity-id}",
\r
219 "owningEntityName":"${owning-entity-name}"
\r
227 service-id: $b{$.requestReferences.instanceId}
\r
230 "requestReferences":{
\r
231 "instanceId":"${instance-id}",
\r
232 "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
\r