1 # This work is licensed under a Creative Commons Attribution 4.0 International License.
2 # http://creativecommons.org/licenses/by/4.0
3 # Copyright 2018 Orange
7 description: "serviceInventory API designed for ONAP Beijing Release.\nThis API\
8 \ is build from TMF open API18.0 (applying TMF Guideline 3.0)\nonly operation\
9 \ GET (by id & byList) for resource serviceSpecification is available"
11 title: "API ServiceInventory"
13 basePath: "/nbi/api/v1"
17 - "application/json;charset=utf-8"
19 - "application/json;charset=utf-8"
28 operationId: "serviceFind"
29 summary: "List services"
30 description: "This operation list service entities. \nAttribute selection is\
31 \ restricted. \nfields attribute may be used to filter retrieved attribute(s)\
32 \ for each service\n\nSpecific business errors for current operation will\
33 \ be encapsulated in\n\nHTTP Response 422 Unprocessable entity\n"
36 - name: "relatedParty.id"
41 - name: "serviceSpecification.id"
46 - name: "serviceSpecification.name"
63 description: "Success"
67 $ref: "#/definitions/ListService"
69 description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
70 \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
71 \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
72 \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
75 $ref: "#/definitions/ErrorRepresentation"
77 description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
78 \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
80 $ref: "#/definitions/ErrorRepresentation"
82 description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
83 \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
86 $ref: "#/definitions/ErrorRepresentation"
88 description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
91 $ref: "#/definitions/ErrorRepresentation"
93 description: "Unprocessable entity\n\nFunctional error"
95 $ref: "#/definitions/ErrorRepresentation"
97 description: "Internal Server Error\n\nList of supported error codes:\n\
100 $ref: "#/definitions/ErrorRepresentation"
102 description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
103 \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
106 $ref: "#/definitions/ErrorRepresentation"
111 operationId: "serviceGet"
112 summary: "Retrieve a service"
113 description: "This operation retrieves a service entity. \nAttribute selection\
114 \ is enabled for all first level attributes.\n\nSpecific business errors for\
115 \ current operation will be encapsulated in\n\nHTTP Response 422 Unprocessable\
124 - name: "relatedParty.id"
129 - name: "serviceSpecification.id"
134 - name: "serviceSpecification.name"
141 description: "Success"
143 $ref: "#/definitions/Service"
145 description: "Bad Request\n\nList of supported error codes:\n- 20: Invalid\
146 \ URL parameter value\n- 21: Missing body\n- 22: Invalid body\n- 23: Missing\
147 \ body field\n- 24: Invalid body field\n- 25: Missing header\n- 26: Invalid\
148 \ header value\n- 27: Missing query-string parameter\n- 28: Invalid query-string\
151 $ref: "#/definitions/ErrorRepresentation"
153 description: "Unauthorized\n\nList of supported error codes:\n- 40: Missing\
154 \ credentials\n- 41: Invalid credentials\n- 42: Expired credentials"
156 $ref: "#/definitions/ErrorRepresentation"
158 description: "Forbidden\n\nList of supported error codes:\n- 50: Access\
159 \ denied\n- 51: Forbidden requester\n- 52: Forbidden user\n- 53: Too many\
162 $ref: "#/definitions/ErrorRepresentation"
164 description: "Not Found\n\nList of supported error codes:\n- 60: Resource\
167 $ref: "#/definitions/ErrorRepresentation"
169 description: "Unprocessable entity\n\nFunctional error"
171 $ref: "#/definitions/ErrorRepresentation"
173 description: "Internal Server Error\n\nList of supported error codes:\n\
176 $ref: "#/definitions/ErrorRepresentation"
178 description: "Service Unavailable\n\nList of supported error codes:\n- 5:\
179 \ The service is temporarily unavailable\n- 6: Orange API is over capacity,\
182 $ref: "#/definitions/ErrorRepresentation"
188 - "feasibilityChecked"
195 description: "This class is used to describe error.\nfor nbi Beijing release we\
196 \ do not manage additional error for serviceCatalog"
203 description: "Application related code (as defined in the API or from a common\
208 description: "Text that explains the reason for error. This can be shown to\
212 description: "Text that provide more details and corrective actions related\
213 \ to the error. This can be shown to a client user."
216 description: "http error code extension like 400-2"
219 description: "url pointing to documentation describing the error"
222 description: "The class type of a REST resource."
225 description: "it provides a link to the schema describing a REST resource."
228 description: "Instantiated service (service_instance) in AAI"
232 description: "Unique identifier of the service - Valued with service-instance-id"
235 description: "Reference of the service\nNot managed in Beijing release"
238 description: "Name of the service - Valued with service-instance-name"
241 description: "Service type - valued with 'service-instance'"
244 $ref: "#/definitions/stateValues"
246 description: "This is a Boolean attribute that, if TRUE, signifies that this\
247 \ Service has already been started. If the value of this attribute is FALSE,\
248 \ then this signifies that this Service has NOT been Started\nNot managed\
249 \ in Beijing release"
252 description: "This attribute allows to dynamically extends TMF class. Not\
253 \ used in Beijing release."
256 description: "Not managed in Beijing release"
259 description: "Not managed in Beijing release"
261 serviceSpecification:
262 $ref: "#/definitions/ServiceSpecificationRef"
266 $ref: "#/definitions/ServiceCharacteristic"
270 $ref: "#/definitions/SupportingResource"
274 $ref: "#/definitions/RelatedPartyRef"
275 ServiceSpecificationRef:
276 description: "Service specification reference: ServiceSpecification of this service\
277 \ (catalog information)"
281 description: "Unique identifier of the service specification. valued to model-version-id"
284 description: "Reference of the service specification.\nnot managed in Beijing\
288 description: "Name of the required service specification"
291 description: "Service specification version.\nNot managed in Beijing release"
294 description: "This attribute allows to dynamically extends TMF class. Valued\
295 \ with 'ONAPservice'. We used this features to add following attribute:\
299 description: "Not managed in Beijing release"
302 description: "Additional attribute (not in the TMF API) - extended through\
303 \ @referredType - model-invariant-id"
305 ServiceCharacteristic:
306 description: "A list of name value pairs that define the service characteristics\n\
307 Not managed in Beijing release."
313 description: "Name of the characteristic\nNot managed in Beijing release."
316 description: "Type of value for this characteristic.\nNot managed in Beijing\
320 $ref: "#/definitions/Value"
322 description: "Supporting resource - A supportingResource will be retrieved for\
323 \ each relationship of the relationship-list where related-link describe a vnf"
327 description: "Unique identifier of the supporting resource - Valued to vnf-id"
330 description: "Reference of the supporting resource"
333 description: "Not managed in Beijing release."
336 description: "Name of the supporting resource - Valued with vnf_-name"
339 description: "This attribute allows to dynamically extends TMF class. Valued\
340 \ with 'ONAP resource'. We used this features to add following attributes:\n\
341 \ status\t\n modelInvariantId\n modelVersionId\n modelCustomisationId"
344 description: "Not managed in Beijing release."
347 description: "Additional attribute (not in the TMF API) - extended through\
348 \ @referredType - valued with prov-status"
351 description: "Additional attribute (not in the TMF API) - extended through\
352 \ @referredType - valued with model-invariant-id"
355 description: "Additional attribute (not in the TMF API) - extended through\
356 \ @referredType - valued with model-verson-id"
358 modelCustomisationId:
359 description: "Additional attribute (not in the TMF API) - extended through\
360 \ @referredType - valued with model-customisation-id"
363 description: "RelatedParty reference. A related party defines party or party role\
364 \ linked to a specific entity.\nOnly ONAP Customer is managed in Beijing release."
368 description: "Unique identifier of a related party"
371 description: "Reference of a related party.\nNot filled in Beijing release."
374 description: "Role played by the related party.\nFilled with 'ONAPcustomer'"
377 description: "Not managed in the Beijing release."
380 description: "Structure used to describe characteristic value.\nNot managed in\
385 description: "Not managed in Beijing release."
388 description: "Not managed in Beijing release."
390 serviceCharacteristicValue:
391 description: "Not managed in Beijing release."
394 description: "This class is used to structure list of service(s) retrieved"
398 description: "Unique identifier of a related party"
401 description: "Role played by the related party - only role “ONAPcustomer”\
402 \ is managed in Beijing release."
404 ListServiceSpecificationRef:
405 description: "This class is used to structure list of service(s) retrieved"
409 description: "Unique identifier of the service specification"
412 description: "Name of the required service specification"
415 description: "This class is used to structure list of service(s) retrieved"
419 description: "Unique identifier of the service"
422 description: "Name of the service"
424 serviceSpecification:
425 $ref: "#/definitions/ListServiceSpecificationRef"
427 $ref: "#/definitions/ListRelatedPartyRef"