9 https://api-designer.sso.infra.ftgroup/swagger-ui/?url=https://api-designer.sso.infra.ftgroup/api/1.0/apis/N3ma89X1x0/swagger.json[Swagger UI]
12 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]
14 serviceCatalog API designed for ONAP Beijing Release.
15 This API is build from TMF open API17.5.
16 Only operation GET (by id & byList) for resource serviceSpecification is available
19 === Version information
21 __Version__ : 1.0.0_inProgress
27 __BasePath__ : /nbi/api/v1
33 * ServiceSpecification
38 * `application/json;charset=utf-8`
43 * `application/json;charset=utf-8`
49 [[_servicespecification_resource]]
50 === ServiceSpecification
52 [[_servicespecificationfind]]
53 ==== List service specifications
55 GET /serviceSpecification
60 This operation returns service specifications from a catalog.
61 Only a predefined set of attribute is proposed : Based on SDC limitations, only attributes category and distributionStatus are available for serviceSpecification filtering
62 Fields attribute could be used to filter attributes retrieved
64 Specific business errors for current operation will be encapsulated in
66 HTTP Response 422 Unprocessable entity
71 [options="header", cols=".^2,.^3,.^9,.^4"]
73 |Type|Name|Description|Schema
74 |**Query**|**category** +
75 __optional__|Service Category (filter)|string
76 |**Query**|**distributionStatus** +
77 __optional__|Service distribution status (filter)|string
78 |**Query**|**fields** +
79 __optional__|Field selection - used to filtering the attributes to be retreived|string
85 [options="header", cols=".^2,.^14,.^4"]
87 |HTTP Code|Description|Schema
88 |**200**|Success|< <<_servicespecification,ServiceSpecification>> > array
91 List of supported error codes:
92 - 20: Invalid URL parameter value
95 - 23: Missing body field
96 - 24: Invalid body field
98 - 26: Invalid header value
99 - 27: Missing query-string parameter
100 - 28: Invalid query-string parameter value|<<_errorrepresentation,ErrorRepresentation>>
101 |**401**|Unauthorized
103 List of supported error codes:
104 - 40: Missing credentials
105 - 41: Invalid credentials
106 - 42: Expired credentials|<<_errorrepresentation,ErrorRepresentation>>
109 List of supported error codes:
111 - 51: Forbidden requester
113 - 53: Too many requests|<<_errorrepresentation,ErrorRepresentation>>
116 List of supported error codes:
117 - 60: Resource not found|<<_errorrepresentation,ErrorRepresentation>>
118 |**422**|Unprocessable entity
120 Functional error|<<_errorrepresentation,ErrorRepresentation>>
121 |**500**|Internal Server Error
123 List of supported error codes:
124 - 1: Internal error|<<_errorrepresentation,ErrorRepresentation>>
125 |**503**|Service Unavailable
127 List of supported error codes:
128 - 5: The service is temporarily unavailable
129 - 6: Orange API is over capacity, retry later !|<<_errorrepresentation,ErrorRepresentation>>
133 [[_servicespecificationget]]
134 ==== Retrieve a service specification
136 GET /serviceSpecification/{id}
141 This operation returns a service specification by its id from a catalog. Attribute selection is enabled using the fields attribute.
143 Specific business errors for current operation will be encapsulated in
145 HTTP Response 422 Unprocessable entity
150 [options="header", cols=".^2,.^3,.^9,.^4"]
152 |Type|Name|Description|Schema
155 |**Query**|**fields** +
156 __optional__|Attribute selection|string
162 [options="header", cols=".^2,.^14,.^4"]
164 |HTTP Code|Description|Schema
165 |**200**|Success|<<_servicespecification,ServiceSpecification>>
168 List of supported error codes:
169 - 20: Invalid URL parameter value
172 - 23: Missing body field
173 - 24: Invalid body field
175 - 26: Invalid header value
176 - 27: Missing query-string parameter
177 - 28: Invalid query-string parameter value|<<_errorrepresentation,ErrorRepresentation>>
178 |**401**|Unauthorized
180 List of supported error codes:
181 - 40: Missing credentials
182 - 41: Invalid credentials
183 - 42: Expired credentials|<<_errorrepresentation,ErrorRepresentation>>
186 List of supported error codes:
188 - 51: Forbidden requester
190 - 53: Too many requests|<<_errorrepresentation,ErrorRepresentation>>
193 List of supported error codes:
194 - 60: Resource not found|<<_errorrepresentation,ErrorRepresentation>>
195 |**422**|Unprocessable entity
197 Functional error|<<_errorrepresentation,ErrorRepresentation>>
198 |**500**|Internal Server Error
200 List of supported error codes:
201 - 1: Internal error|<<_errorrepresentation,ErrorRepresentation>>
202 |**503**|Service Unavailable
204 List of supported error codes:
205 - 5: The service is temporarily unavailable
206 - 6: Orange API is over capacity, retry later !|<<_errorrepresentation,ErrorRepresentation>>
215 An attachment is a file uses to describe the service.
216 In nbi we use attachment to retrieve ONAP artifacts.
219 [options="header", cols=".^3,.^11,.^4"]
221 |Name|Description|Schema
223 __optional__|This attribute allows to dynamically extends TMF class. Valued with 'ONAPartifact'. We used this features to add following attributes:
230 **Default** : `"ONAPartifact"`|string
231 |**artifactChecksum** +
232 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactChecksum|string
233 |**artifactGroupType** +
234 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactGroupType|string
236 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactLabel|string
237 |**artifactTimeout** +
238 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactTimeout|string
239 |**artifactVersion** +
240 __optional__|Additional attribute (not in the TMF API) - extended through @type - artifactVersion|string
242 __optional__|Description of the attachment - filled with artifactDescription|string
243 |**generatedFromUUID** +
244 __optional__|Additional attribute (not in the TMF API) - extended through @type - generatedFromUUID|string
246 __optional__|Unique identifier of the attachment - filled with artifactUUID.|string
248 __optional__|Filled with artifactType|string
250 __optional__|Name of the attachment - filled with artifactName|string
252 __optional__|Uniform Resource Locator, is a web page address - filled with artifactURL|string
256 [[_distributionstatus]]
257 === DistributionStatus
258 Service distribution status from ONAP.
260 __Type__ : enum (DISTRIBUTION_NOT_APPROVED, DISTRIBUTION_APPROVED, DISTRIBUTED, DISTRIBUTION_REJECTED)
263 [[_errorrepresentation]]
264 === ErrorRepresentation
265 This class is used to describe error.
266 for nbi Beijing release we do not manage additional error for serviceCatalog
269 [options="header", cols=".^3,.^11,.^4"]
271 |Name|Description|Schema
272 |**@schemaLocation** +
273 __optional__|it provides a link to the schema describing a REST resource.|string
275 __optional__|The class type of a REST resource.|string
277 __required__|Application related code (as defined in the API or from a common list)|integer (int32)
279 __optional__|Text that provide more details and corrective actions related to the error. This can be shown to a client user|string
281 __required__|Text that explains the reason for error. This can be shown to a client user.|string
282 |**referenceErrror** +
283 __optional__|url pointing to documentation describing the error|string
285 __optional__|http error code extension like 400-2|string
289 [[_lifecyclestatusvalues]]
290 === LifecycleStatusValues
291 Service lifecycle value from ONAP SDC
293 __Type__ : enum (NOT_CERTIFIED_CHECKOUT, NOT_CERTIFIED_CHECKIN, READY_FOR_CERTIFICATION, CERTIFICATION_IN_PROGRESS, CERTIFIED)
298 Party linked to the service catalog.
299 in nbi we retrieve information about last updater of the service in SDC
302 [options="header", cols=".^3,.^11,.^4"]
304 |Name|Description|Schema
306 __optional__|Unique identifier of the related party. Filled with lastUpdaterUserId|string
308 __optional__|Name of the related party - Filled with lastUpdatedFullName|string
310 __optional__|Role payed by the related party
311 Only role 'lastUpdater' is retrieved in Beijing release|string
315 [[_resourcespecificationref]]
316 === ResourceSpecificationRef
317 A list of resourceSpec identified to deliver the service.
318 for nbi we retrieve resource information available in service description (through SDC api) bu as well information retrieved in the TOSCA file.
321 [options="header", cols=".^3,.^11,.^4"]
323 |Name|Description|Schema
325 __optional__|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPresource'. We used this features to add following attributes:
327 resourceInvariantUUID
329 modelCustomizationName
330 modelCustomizationId +
331 **Default** : `"ONAPresource"`|string
333 __optional__|Unique identifier of the resource specification - filled with resourceUUID|string
334 |**modelCustomizationId** +
335 __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
336 |**modelCustomizationName** +
337 __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
339 __optional__|Name of the resource specification - filled with resourceName|string
340 |**resourceInstanceName** +
341 __optional__|Additional attribute (not in the TMF API) - extended through @type - resourceInstanceName|string
342 |**resourceInvariantUUID** +
343 __optional__|Additional attribute (not in the TMF API) - extended through @type - resourceInvariantUUID|string
345 __optional__|Additional attribute (not in the TMF API) - extended through @type - resoucreType|string
347 __optional__|Version for this resource specification - filled with resourceVersion|string
351 [[_servicespeccharacteristic]]
352 === ServiceSpecCharacteristic
353 A characteristic quality or distinctive feature of a ServiceSpecification.
354 ServiceSpecCharacteristic are retrieved in the serviceTosca file in the topology_template section in the inputs section.
357 [options="header", cols=".^3,.^11,.^4"]
359 |Name|Description|Schema
360 |**@schemaLocation** +
361 __optional__|An url pointing to type description - we do not use it in nbi Beijing release|string
363 __optional__|This attribute allows to dynamically extends TMF class. Valued with: 'ONAPserviceCharacteristic'. We do not used this features in nbi Beijing release.|string
365 __optional__|A narrative that explains in detail what the characteristic is - Filled with parameter_description|string
367 __optional__|Name of the characteristic - Filled with parameter_name|string
369 __optional__|A parameter to define if the characteristic is mandatory - Filled from parameter_required – if not fielded by default ‘true’ +
370 **Default** : `true`|boolean
371 |**serviceSpecCharacteristicValue** +
372 __optional__||< <<_servicespeccharacteristicvalue,ServiceSpecCharacteristicValue>> > array
374 __optional__|Status of the characteristic - filled with status_value|string
376 __optional__|A kind of value that the characteristic can take on, such as numeric, text and so forth - Filled with parameter_type|string
380 [[_servicespeccharacteristicvalue]]
381 === ServiceSpecCharacteristicValue
382 A number or text that can be assigned to a service specification characteristic.
383 ServiceSpecCharacteristicValue are retrieved in the service Tosca file
386 [options="header", cols=".^3,.^11,.^4"]
388 |Name|Description|Schema
390 __optional__|Information calculated from parameter default in the Tosca file|boolean
392 __optional__|A discrete value that the characteristic can take on|string
394 __optional__|A kind of value that the characteristic can take on, such as numeric, text, and so forth
395 Retrieved in the Tosca in the topology_template section in the inputs section - parameter_type.
396 We do not manage parameter_type= list or map for Beijing release|string
400 [[_servicespecification]]
401 === ServiceSpecification
402 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.
403 the service information are retrieved in SDC
406 [options="header", cols=".^3,.^11,.^4"]
408 |Name|Description|Schema
410 __optional__|Not used for Beijing release|string
411 |**@schemaLocation** +
412 __optional__|Not used for Beijing release|string
414 __optional__|This attribute allows to dynamically extends TMF class. Valued with 'ONAPservice'. We used this features to add following attributes:
421 **Default** : `"ONAPservice"`|string
423 __optional__||< <<_attachment,Attachment>> > array
425 __optional__|Additional attribute - extended through @type - category
426 Please note that this attribute is managed in TMF - in future release we'll introduce category resource|string
428 __optional__|A narrative that explains in detail what the service specification is - Filled with SDC Service description|string
429 |**distributionStatus** +
430 __optional__||<<_distributionstatus,DistributionStatus>>
432 __optional__|Reference of the service specification- not mapped in Beijing|string
434 __optional__|Unique identifier of the service specification. Filled with SDC Service uuid|string
436 __required__|Additional attribute (not in the TMF API) - extended through @type - invariantUUID|string
437 |**lifecycleStatus** +
438 __optional__||<<_lifecyclestatusvalues,LifecycleStatusValues>>
440 __optional__|Name of the service specification- Filled with SDC Service name|string
442 __optional__||< <<_relatedpartyref,RelatedPartyRef>> > array
443 |**resourceSpecification** +
444 __optional__||< <<_resourcespecificationref,ResourceSpecificationRef>> > array
445 |**serviceSpecCharacteristic** +
446 __optional__||< <<_servicespeccharacteristic,ServiceSpecCharacteristic>> > array
448 __optional__|Additional attribute - extended through @type - category
449 Please note that this attribute is managed in TMF - in future release we'll introduce category resourc|string
450 |**targetServiceSchema** +
451 __optional__||<<_targetserviceschemaref,TargetServiceSchemaRef>>
453 __optional__|Additional attribute (not in the TMF API) - extended through @type - toscaModelURL|string
454 |**toscaResourceName** +
455 __optional__|Additional attribute (not in the TMF API) - extended through @type - toscaResourceName|string
457 __optional__|Service specification version - Filled with SDC Service version|string
461 [[_targetserviceschemaref]]
462 === TargetServiceSchemaRef
464 [options="header", cols=".^3,.^4"]
467 |**@schemaLocation** +
479 [options="header", cols=".^3,.^11,.^4"]
481 |Name|Description|Schema
483 __optional__|End date and time of the period|string (date-time)
485 __optional__|Start date and time of the period|string (date-time)