1 # Copyright (c) 2018 Orange
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.swagger: "2.0"
16 description: "Query information about instantiated services\n\nList of available\
17 \ subscription for serviceInventory notifications, see /hub resources for more\
18 \ information:\n\n- ServiceCreationNotification\n- ServiceAttributeValueChangeNotification\n\
19 - ServiceRemoveNotification\n\n"
21 title: "ServiceInventory API"
24 url: "https://onap.readthedocs.io"
25 email: "onap-discuss@lists.onap.org"
28 url: "http://www.apache.org/licenses/LICENSE-2.0"
29 x-planned-retirement-date: "205001"
32 url: "/redoc/logo.png"
33 backgroundColor: "#FFFFFF"
34 host: "serverRoot:30274"
35 basePath: "/nbi/api/v4"
40 - "application/json;charset=utf-8"
43 description: "Provided by NBI"
44 - name: "Notification"
45 description: "provided by subscriber, which MUST has been registered by creating\
46 \ a Hub ressource on NBI"
50 last-mod-release: "Frankfurt"
56 - "application/json;charset=utf-8"
57 operationId: "service_Find"
58 summary: "List services"
59 description: "This operation list service entities. \nAttribute selection is\
60 \ restricted. \nfields attribute may be used to filter retrieved attribute(s)\
64 - name: "relatedParty.id"
69 - name: "serviceSpecification.id"
74 - name: "serviceSpecification.name"
95 $ref: "#/definitions/ListService"
101 - "application/json;charset=utf-8"
102 operationId: "service_Get"
103 summary: "Retrieve a service"
104 description: "This operation retrieves a service entity. \nAttribute selection\
105 \ is enabled for all first level attributes."
116 $ref: "#/definitions/Service"
122 - "application/json;charset=utf-8"
124 - "application/json;charset=utf-8"
125 operationId: "notification_Create"
126 summary: "NBI will send notification to this operation provided by subscribers"
130 - name: "Notification"
135 $ref: "#/definitions/Notification"
138 description: "Created"
140 $ref: "#/definitions/Notification"
143 description: "The Event Type"
146 - "ServiceCreationNotification"
147 - "ServiceAttributeValueChangeNotification"
148 - "ServiceRemoveNotification"
150 description: "This class is used to describe error."
157 description: "Application related code (as defined in the API or from a common\
162 description: "Text that explains the reason for error. This can be shown to\
166 description: "Text that provide more details and corrective actions related\
167 \ to the error. This can be shown to a client user."
170 description: "http error code extension like 400-2"
173 description: "url pointing to documentation describing the error"
176 description: "The class type of a REST resource."
179 description: "it provides a link to the schema describing a REST resource."
182 description: "Instantiated service (service_instance) in AAI"
186 description: "Unique identifier of the service - Valued with service-instance-id"
189 description: "Reference of the service\nNot managed in Beijing release"
192 description: "Name of the service - Valued with service-instance-name"
195 description: "Service type - valued with 'service-instance'"
198 description: "State of the service."
201 description: "This attribute allows to dynamically extends TMF class. Not\
202 \ used in Beijing release."
205 description: "Not managed in Beijing release"
208 description: "Not managed in Beijing release"
210 serviceSpecification:
211 $ref: "#/definitions/ServiceSpecificationRef"
215 $ref: "#/definitions/ServiceCharacteristic"
219 $ref: "#/definitions/SupportingResource"
223 $ref: "#/definitions/RelatedPartyRef"
224 ServiceSpecificationRef:
225 description: "Service specification reference: ServiceSpecification of this service\
226 \ (catalog information)"
230 description: "Unique identifier of the service specification. valued to model-version-id"
233 description: "Reference of the service specification.\nnot managed in Beijing\
237 description: "Name of the required service specification"
240 description: "Service specification version.\nNot managed in Beijing release"
243 description: "This attribute allows to dynamically extends TMF class. Valued\
244 \ with 'ONAPservice'. We used this features to add following attribute:\
248 description: "Not managed in Beijing release"
251 description: "Additional attribute (not in the TMF API) - extended through\
252 \ @referredType - model-invariant-id"
254 ServiceCharacteristic:
255 description: "A list of name value pairs that define the service characteristics\n\
256 Not managed in Beijing release."
262 description: "Name of the characteristic\nNot managed in Beijing release."
265 description: "Type of value for this characteristic.\nNot managed in Beijing\
269 $ref: "#/definitions/Value"
271 description: "Supporting resource - A supportingResource will be retrieved for\
272 \ each relationship of the relationship-list where related-link describe a vnf"
276 description: "Unique identifier of the supporting resource - Valued to vnf-id"
279 description: "Reference of the supporting resource"
282 description: "Not managed in Beijing release."
285 description: "Name of the supporting resource - Valued with vnf_-name"
288 description: "This attribute allows to dynamically extends TMF class. Valued\
289 \ with 'ONAP resource'. We used this features to add following attributes:\n\
290 \ status\t\n modelInvariantId\n modelVersionId\n modelCustomisationId"
293 description: "Not managed in Beijing release."
296 description: "Additional attribute (not in the TMF API) - extended through\
297 \ @referredType - valued with prov-status"
300 description: "Additional attribute (not in the TMF API) - extended through\
301 \ @referredType - valued with model-invariant-id"
304 description: "Additional attribute (not in the TMF API) - extended through\
305 \ @referredType - valued with model-verson-id"
307 modelCustomisationId:
308 description: "Additional attribute (not in the TMF API) - extended through\
309 \ @referredType - valued with model-customisation-id"
312 description: "RelatedParty reference. A related party defines party or party role\
313 \ linked to a specific entity."
317 description: "Unique identifier of a related party"
320 description: "Reference of a related party.\nNot filled in Beijing release."
323 description: "Role played by the related party.\nFilled with 'ONAPcustomer'"
326 description: "Not managed in the Beijing release."
329 description: "Structure used to describe characteristic value.\nNot managed in\
334 description: "Not managed in Beijing release."
337 description: "Not managed in Beijing release."
339 serviceCharacteristicValue:
340 description: "Not managed in Beijing release."
343 description: "This class is used to structure list of service(s) retrieved"
347 description: "Unique identifier of a related party"
350 description: "Role played by the related party - only role “ONAPcustomer”\
351 \ is managed in Beijing release."
353 ListServiceSpecificationRef:
354 description: "This class is used to structure list of service(s) retrieved"
358 description: "Unique identifier of the service specification"
361 description: "Name of the required service specification"
364 description: "This class is used to structure list of service(s) retrieved"
368 description: "Unique identifier of the service"
371 description: "Name of the service"
373 serviceSpecification:
374 $ref: "#/definitions/ListServiceSpecificationRef"
376 $ref: "#/definitions/ListRelatedPartyRef"
377 ServiceInventoryEvent:
378 description: "Structure for a service inventory event notification"
389 description: "The Service Instance Id"
392 description: "A reference to the service inventory"
395 description: "The name of the Service Instance"
398 description: "The type of event, service-instance"
401 description: "The state of the service instance"
404 $ref: "#/definitions/RelatedPartyRef"
406 description: "Notification structure for a service notification"
422 $ref: "#/definitions/eventType"
424 $ref: "#/definitions/ServiceInventoryEvent"