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-dublin
\r
22 author: ONAP CLI Team onap-discuss@lists.onap.org
\r
25 - name: cloud-region
\r
26 description: cloud region identifier
\r
29 long_option: cloud-region
\r
32 description: tenant id
\r
35 long_option: tenant-id
\r
37 - name: model-invariant-id
\r
38 description: model invariant id generated by ASDC.
\r
41 long_option: model-invariant-id
\r
44 description: model uuid generated by ASDC.
\r
47 long_option: model-uuid
\r
50 description: model name as provided in ASDC design time.
\r
53 long_option: model-name
\r
55 - name: model-version
\r
56 description: model-version
\r
59 long_option: model-version
\r
61 - name: model-version-id
\r
62 description: model-version-id
\r
65 long_option: model-version-id
\r
68 description: unique id for customer
\r
71 long_option: customer
\r
73 - name: requestor-id
\r
74 description: requestor ID
\r
77 long_option: requestor-id
\r
79 - name: instance-name
\r
80 description: service instance name
\r
83 long_option: instance-name
\r
85 - name: supress-rollback
\r
86 description: rollback changes if instantiation fails.
\r
89 long_option: supress-rollback
\r
91 - name: service-type
\r
92 description: subscription service type
\r
95 long_option: service-type
\r
98 description: ala carte flag, defaults to true
\r
101 long_option: ala-carte
\r
103 default_value: true
\r
104 - name: customer-latitude
\r
105 description: customer latitude, part of customer location
\r
108 long_option: customer-latitude
\r
110 - name: customer-longitude
\r
111 description: customer longitude, part of customer location
\r
114 long_option: customer-longitude
\r
116 - name: customer-name
\r
117 description: customer name, part of customer location
\r
120 long_option: customer-name
\r
122 - name: homing-solution
\r
123 description: homing solution to use [oof|sniro]
\r
126 long_option: homing-solution
\r
128 - name: orchestrator
\r
129 description: orchestrator to use [multicloud|openstack(default)]
\r
132 long_option: orchestrator
\r
135 description: api to use [GR_API|VNF_API]
\r
140 default_value: GR_API
\r
141 - name: subscriber-name
\r
142 description: subscriber name
\r
145 long_option: subscriber-name
\r
147 - name: project-name
\r
148 description: project name
\r
151 long_option: project-name
\r
153 - name: owning-entity-id
\r
154 description: owning entity id
\r
157 long_option: owning-entity-id
\r
159 - name: owning-entity-name
\r
160 description: owning entity name
\r
163 long_option: owning-entity-name
\r
167 direction: portrait
\r
170 description: instance id for the created service.
\r
182 uri: /onap/so/infra/serviceInstances/v6
\r
186 "cloudConfiguration":{
\r
187 "lcpCloudRegionId":"${cloud-region}",
\r
188 "tenantId":"${tenant-id}"
\r
191 "modelType":"service",
\r
192 "modelInvariantId":"${model-invariant-id}",
\r
193 "modelNameVersionId":"${model-uuid}",
\r
194 "modelName":"${model-name}",
\r
195 "modelVersion":"${model-version}",
\r
196 "modelVersionId":"${model-version-id}"
\r
199 "globalSubscriberId":"${customer}",
\r
200 "subscriberName":"${subscriber-name}"
\r
203 "requestorId":"${requestor-id}",
\r
204 "instanceName":"${instance-name}",
\r
206 "suppressRollback":"${supress-rollback}"
\r
208 "requestParameters":{
\r
209 "subscriptionServiceType":"${service-type}",
\r
210 "aLaCarte":"${ala-carte}",
\r
211 "testApi":"${api}",
\r
214 "name":"Customer_Location",
\r
216 "customerLatitude":"${customer-latitude}",
\r
217 "customerLongitude":"${customer-longitude}",
\r
218 "customerName":"${customer-name}"
\r
222 "name":"Homing_Solution",
\r
223 "value":"${homing-solution}"
\r
226 "name":"orchestrator",
\r
227 "value":"${orchestrator}"
\r
232 "projectName":"${project-name}"
\r
235 "owningEntityId":"${owning-entity-id}",
\r
236 "owningEntityName":"${owning-entity-name}"
\r
243 service-id: $b{$.requestReferences.instanceId}
\r
246 "requestReferences":{
\r
247 "instanceId":"${instance-id}",
\r
248 "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
\r