2 This work is licensed under a Creative Commons Attribution 4.0 International License.
3 http://creativecommons.org/licenses/by/4.0
15 https://api-designer.sso.infra.ftgroup/swagger-ui/?url=https://api-designer.sso.infra.ftgroup/api/1.0/apis/N3ma89X1x0/swagger.json[Swagger UI]
18 https://plantuml.rd.francetelecom.fr/proxy?fmt=svg&src=https://api-designer.sso.infra.ftgroup/api/1.0/apis/N3ma89X1x0/plantuml&noCache=797767.0[plant UML UI]
20 serviceCatalog API designed for ONAP Beijing Release.
21 This API is build from TMF open API17.5.
22 Only operation GET (by id & byList) for resource serviceSpecification is available
25 === Version information
27 __Version__ : 1.0.0_inProgress
33 __BasePath__ : /nbi/api/v1
39 * ServiceSpecification
44 * `application/json;charset=utf-8`
49 * `application/json;charset=utf-8`
55 [[_servicespecification_resource]]
56 === ServiceSpecification
58 [[_servicespecificationfind]]
59 ==== List service specifications
61 GET /serviceSpecification
66 This operation returns service specifications from a catalog.
67 Only a predefined set of attribute is proposed : Based on SDC limitations, only attributes category and distributionStatus are available for serviceSpecification filtering
68 Fields attribute could be used to filter attributes retrieved
70 Specific business errors for current operation will be encapsulated in
72 HTTP Response 422 Unprocessable entity
77 [options="header", cols=".^2,.^3,.^9,.^4"]
79 |Type|Name|Description|Schema
80 |**Query**|**category** +
81 __optional__|Service Category (filter)|string
82 |**Query**|**distributionStatus** +
83 __optional__|Service distribution status (filter)|string
84 |**Query**|**fields** +
85 __optional__|Field selection - used to filtering the attributes to be retreived|string
91 [options="header", cols=".^2,.^14,.^4"]
93 |HTTP Code|Description|Schema
94 |**200**|Success|< <<_servicespecification,ServiceSpecification>> > array
97 List of supported error codes:
98 - 20: Invalid URL parameter value
101 - 23: Missing body field
102 - 24: Invalid body field
104 - 26: Invalid header value
105 - 27: Missing query-string parameter
106 - 28: Invalid query-string parameter value|<<_errorrepresentation,ErrorRepresentation>>
107 |**401**|Unauthorized
109 List of supported error codes:
110 - 40: Missing credentials
111 - 41: Invalid credentials
112 - 42: Expired credentials|<<_errorrepresentation,ErrorRepresentation>>
115 List of supported error codes:
117 - 51: Forbidden requester
119 - 53: Too many requests|<<_errorrepresentation,ErrorRepresentation>>
122 List of supported error codes:
123 - 60: Resource not found|<<_errorrepresentation,ErrorRepresentation>>
124 |**422**|Unprocessable entity
126 Functional error|<<_errorrepresentation,ErrorRepresentation>>
127 |**500**|Internal Server Error
129 List of supported error codes:
130 - 1: Internal error|<<_errorrepresentation,ErrorRepresentation>>
131 |**503**|Service Unavailable
133 List of supported error codes:
134 - 5: The service is temporarily unavailable
135 - 6: Orange API is over capacity, retry later !|<<_errorrepresentation,ErrorRepresentation>>
139 [[_servicespecificationget]]
140 ==== Retrieve a service specification
142 GET /serviceSpecification/{id}
147 This operation returns a service specification by its id from a catalog. Attribute selection is enabled using the fields attribute.
149 Specific business errors for current operation will be encapsulated in
151 HTTP Response 422 Unprocessable entity
156 [options="header", cols=".^2,.^3,.^9,.^4"]
158 |Type|Name|Description|Schema
161 |**Query**|**fields** +
162 __optional__|Attribute selection|string
168 [options="header", cols=".^2,.^14,.^4"]
170 |HTTP Code|Description|Schema
171 |**200**|Success|<<_servicespecification,ServiceSpecification>>
174 List of supported error codes:
175 - 20: Invalid URL parameter value
178 - 23: Missing body field
179 - 24: Invalid body field
181 - 26: Invalid header value
182 - 27: Missing query-string parameter
183 - 28: Invalid query-string parameter value|<<_errorrepresentation,ErrorRepresentation>>
184 |**401**|Unauthorized
186 List of supported error codes:
187 - 40: Missing credentials
188 - 41: Invalid credentials
189 - 42: Expired credentials|<<_errorrepresentation,ErrorRepresentation>>
192 List of supported error codes:
194 - 51: Forbidden requester
196 - 53: Too many requests|<<_errorrepresentation,ErrorRepresentation>>
199 List of supported error codes:
200 - 60: Resource not found|<<_errorrepresentation,ErrorRepresentation>>
201 |**422**|Unprocessable entity
203 Functional error|<<_errorrepresentation,ErrorRepresentation>>
204 |**500**|Internal Server Error
206 List of supported error codes:
207 - 1: Internal error|<<_errorrepresentation,ErrorRepresentation>>
208 |**503**|Service Unavailable
210 List of supported error codes:
211 - 5: The service is temporarily unavailable
212 - 6: Orange API is over capacity, retry later !|<<_errorrepresentation,ErrorRepresentation>>
221 An attachment is a file uses to describe the service.
222 In nbi we use attachment to retrieve ONAP artifacts.
225 [options="header", cols=".^3,.^11,.^4"]
227 |Name|Description|Schema
229 __optional__|This attribute allows to dynamically extends TMF class. Valued with 'ONAPartifact'. We used this features to add following attributes:
236 **Default** : `"ONAPartifact"`|string
237 |**artifactChecksum** +
238 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactChecksum|string
239 |**artifactGroupType** +
240 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactGroupType|string
242 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactLabel|string
243 |**artifactTimeout** +
244 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactTimeout|string
245 |**artifactVersion** +
246 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactVersion|string
248 __optional__|Description of the attachment - filled with artifactDescription|string
249 |**generatedFromUUID** +
250 __optional__|Additional attribute (not in the TMF API) - extended through @type - generatedFromUUID|string
252 __optional__|Unique identifier of the attachment - filled with artifactUUID.|string
254 __optional__|Filled with artifactType|string
256 __optional__|Name of the attachment - filled with artifactName|string
258 __optional__|Uniform Resource Locator, is a web page address - filled with artifactURL|string
262 [[_distributionstatus]]
263 === DistributionStatus
264 Service distribution status from ONAP.
266 __Type__ : enum (DISTRIBUTION_NOT_APPROVED, DISTRIBUTION_APPROVED, DISTRIBUTED, DISTRIBUTION_REJECTED)
269 [[_errorrepresentation]]
270 === ErrorRepresentation
271 This class is used to describe error.
272 for nbi Beijing release we do not manage additional error for serviceCatalog
275 [options="header", cols=".^3,.^11,.^4"]
277 |Name|Description|Schema
278 |**@schemaLocation** +
279 __optional__|it provides a link to the schema describing a REST resource.|string
281 __optional__|The class type of a REST resource.|string
283 __required__|Application related code (as defined in the API or from a common list)|integer (int32)
285 __optional__|Text that provide more details and corrective actions related to the error. This can be shown to a client user|string
287 __required__|Text that explains the reason for error. This can be shown to a client user.|string
288 |**referenceErrror** +
289 __optional__|url pointing to documentation describing the error|string
291 __optional__|http error code extension like 400-2|string
295 [[_lifecyclestatusvalues]]
296 === LifecycleStatusValues
297 Service lifecycle value from ONAP SDC
299 __Type__ : enum (NOT_CERTIFIED_CHECKOUT, NOT_CERTIFIED_CHECKIN, READY_FOR_CERTIFICATION, CERTIFICATION_IN_PROGRESS, CERTIFIED)
304 Party linked to the service catalog.
305 in nbi we retrieve information about last updater of the service in SDC
308 [options="header", cols=".^3,.^11,.^4"]
310 |Name|Description|Schema
312 __optional__|Unique identifier of the related party. Filled with lastUpdaterUserId|string
314 __optional__|Name of the related party - Filled with lastUpdatedFullName|string
316 __optional__|Role payed by the related party
317 Only role 'lastUpdater' is retrieved in Beijing release|string
321 [[_resourcespecificationref]]
322 === ResourceSpecificationRef
323 A list of resourceSpec identified to deliver the service.
324 for nbi we retrieve resource information available in service description (through SDC api) bu as well information retrieved in the TOSCA file.
327 [options="header", cols=".^3,.^11,.^4"]
329 |Name|Description|Schema
331 __optional__|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPresource'. We used this features to add following attributes:
333 resourceInvariantUUID
335 modelCustomizationName
336 modelCustomizationId +
337 **Default** : `"ONAPresource"`|string
339 __optional__|Unique identifier of the resource specification - filled with resourceUUID|string
340 |**modelCustomizationId** +
341 __optional__|Additional attribute (not in the TMF API) - extended through @type - Retrieved in the TOSCA file : attribute customizationUUID in topology_template/node_template for the resource|string
342 |**modelCustomizationName** +
343 __optional__|Additional attribute (not in the TMF API) - extended through @type - Retrieved in the TOSCA file : attribute name in topology_template/node_template for the resource|string
345 __optional__|Name of the resource specification - filled with resourceName|string
346 |**resourceInstanceName** +
347 __optional__|Additional attribute (not in the TMF API) - extended through @type - resourceInstanceName|string
348 |**resourceInvariantUUID** +
349 __optional__|Additional attribute (not in the TMF API) - extended through @type - resourceInvariantUUID|string
351 __optional__|Additional attribute (not in the TMF API) - extended through @type - resoucreType|string
353 __optional__|Version for this resource specification - filled with resourceVersion|string
357 [[_servicespeccharacteristic]]
358 === ServiceSpecCharacteristic
359 A characteristic quality or distinctive feature of a ServiceSpecification.
360 ServiceSpecCharacteristic are retrieved in the serviceTosca file in the topology_template section in the inputs section.
363 [options="header", cols=".^3,.^11,.^4"]
365 |Name|Description|Schema
366 |**@schemaLocation** +
367 __optional__|An url pointing to type description - we do not use it in nbi Beijing release|string
369 __optional__|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPserviceCharacteristic'. We do not used this features in nbi Beijing release.|string
371 __optional__|A narrative that explains in detail what the characteristic is - Filled with parameter_description|string
373 __optional__|Name of the characteristic - Filled with parameter_name|string
375 __optional__|A parameter to define if the characteristic is mandatory - Filled from parameter_required – if not fielded by default ‘true’ +
376 **Default** : `true`|boolean
377 |**serviceSpecCharacteristicValue** +
378 __optional__||< <<_servicespeccharacteristicvalue,ServiceSpecCharacteristicValue>> > array
380 __optional__|Status of the characteristic - filled with status_value|string
382 __optional__|A kind of value that the characteristic can take on, such as numeric, text and so forth - Filled with parameter_type|string
386 [[_servicespeccharacteristicvalue]]
387 === ServiceSpecCharacteristicValue
388 A number or text that can be assigned to a service specification characteristic.
389 ServiceSpecCharacteristicValue are retrieved in the service Tosca file
392 [options="header", cols=".^3,.^11,.^4"]
394 |Name|Description|Schema
396 __optional__|Information calculated from parameter default in the Tosca file|boolean
398 __optional__|A discrete value that the characteristic can take on|string
400 __optional__|A kind of value that the characteristic can take on, such as numeric, text, and so forth
401 Retrieved in the Tosca in the topology_template section in the inputs section - parameter_type.
402 We do not manage parameter_type= list or map for Beijing release|string
406 [[_servicespecification]]
407 === ServiceSpecification
408 ServiceSpecification is a class that offers characteristics to describe a type of service. Functionally, it acts as a template by which Services may be instantiated. By sharing the same specification, these services would therefore share the same set of characteristics.
409 the service information are retrieved in SDC
412 [options="header", cols=".^3,.^11,.^4"]
414 |Name|Description|Schema
416 __optional__|Not used for Beijing release|string
417 |**@schemaLocation** +
418 __optional__|Not used for Beijing release|string
420 __optional__|This attribute allows to dynamically extends TMF class. Valued with 'ONAPservice'. We used this features to add following attributes:
427 **Default** : `"ONAPservice"`|string
429 __optional__||< <<_attachment,Attachment>> > array
431 __optional__|Additional attribute - extended through @type - category
432 Please note that this attribute is managed in TMF - in future release we'll introduce category resource|string
434 __optional__|A narrative that explains in detail what the service specification is - Filled with SDC Service description|string
435 |**distributionStatus** +
436 __optional__||<<_distributionstatus,DistributionStatus>>
438 __optional__|Reference of the service specification- not mapped in Beijing|string
440 __optional__|Unique identifier of the service specification. Filled with SDC Service uuid|string
442 __required__|Additional attribute (not in the TMF API) - extended through @type - invariantUUID|string
443 |**lifecycleStatus** +
444 __optional__||<<_lifecyclestatusvalues,LifecycleStatusValues>>
446 __optional__|Name of the service specification- Filled with SDC Service name|string
448 __optional__||< <<_relatedpartyref,RelatedPartyRef>> > array
449 |**resourceSpecification** +
450 __optional__||< <<_resourcespecificationref,ResourceSpecificationRef>> > array
451 |**serviceSpecCharacteristic** +
452 __optional__||< <<_servicespeccharacteristic,ServiceSpecCharacteristic>> > array
454 __optional__|Additional attribute - extended through @type - category
455 Please note that this attribute is managed in TMF - in future release we'll introduce category resourc|string
456 |**targetServiceSchema** +
457 __optional__||<<_targetserviceschemaref,TargetServiceSchemaRef>>
459 __optional__|Additional attribute (not in the TMF API) - extended through @type - toscaModelURL|string
460 |**toscaResourceName** +
461 __optional__|Additional attribute (not in the TMF API) - extended through @type - toscaResourceName|string
463 __optional__|Service specification version - Filled with SDC Service version|string
467 [[_targetserviceschemaref]]
468 === TargetServiceSchemaRef
470 [options="header", cols=".^3,.^4"]
473 |**@schemaLocation** +
485 [options="header", cols=".^3,.^11,.^4"]
487 |Name|Description|Schema
489 __optional__|End date and time of the period|string (date-time)
491 __optional__|Start date and time of the period|string (date-time)