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: "API ServiceInventory"
23 url: "/redoc/logo.png"
24 backgroundColor: "#FFFFFF"
25 host: "localhost:8080"
26 basePath: "/nbi/api/v4"
30 - "application/json;charset=utf-8"
33 description: "Provided by NBI"
34 - name: "Notification"
35 description: "provided by subscriber, which MUST has been registered by creating\
36 \ a Hub ressource on NBI"
43 - "application/json;charset=utf-8"
44 operationId: "serviceFind"
45 summary: "List services"
46 description: "This operation list service entities. \nAttribute selection is\
47 \ restricted. \nfields attribute may be used to filter retrieved attribute(s)\
51 - name: "relatedParty.id"
56 - name: "serviceSpecification.id"
61 - name: "serviceSpecification.name"
82 $ref: "#/definitions/ListService"
88 - "application/json;charset=utf-8"
89 operationId: "serviceGet"
90 summary: "Retrieve a service"
91 description: "This operation retrieves a service entity. \nAttribute selection\
92 \ is enabled for all first level attributes."
103 $ref: "#/definitions/Service"
109 - "application/json;charset=utf-8"
111 - "application/json;charset=utf-8"
112 operationId: "notificationCreate"
113 summary: "NBI will send notification to this operation provided by subscribers"
117 - name: "Notification"
122 $ref: "#/definitions/Notification"
125 description: "Created"
127 $ref: "#/definitions/Notification"
133 - "ServiceCreationNotification"
134 - "ServiceAttributeValueChangeNotification"
135 - "ServiceRemoveNotification"
137 description: "This class is used to describe error."
144 description: "Application related code (as defined in the API or from a common\
149 description: "Text that explains the reason for error. This can be shown to\
153 description: "Text that provide more details and corrective actions related\
154 \ to the error. This can be shown to a client user."
157 description: "http error code extension like 400-2"
160 description: "url pointing to documentation describing the error"
163 description: "The class type of a REST resource."
166 description: "it provides a link to the schema describing a REST resource."
169 description: "Instantiated service (service_instance) in AAI"
173 description: "Unique identifier of the service - Valued with service-instance-id"
176 description: "Reference of the service\nNot managed in Beijing release"
179 description: "Name of the service - Valued with service-instance-name"
182 description: "Service type - valued with 'service-instance'"
185 description: "State of the service."
188 description: "This attribute allows to dynamically extends TMF class. Not\
189 \ used in Beijing release."
192 description: "Not managed in Beijing release"
195 description: "Not managed in Beijing release"
197 serviceSpecification:
198 $ref: "#/definitions/ServiceSpecificationRef"
202 $ref: "#/definitions/ServiceCharacteristic"
206 $ref: "#/definitions/SupportingResource"
210 $ref: "#/definitions/RelatedPartyRef"
211 ServiceSpecificationRef:
212 description: "Service specification reference: ServiceSpecification of this service\
213 \ (catalog information)"
217 description: "Unique identifier of the service specification. valued to model-version-id"
220 description: "Reference of the service specification.\nnot managed in Beijing\
224 description: "Name of the required service specification"
227 description: "Service specification version.\nNot managed in Beijing release"
230 description: "This attribute allows to dynamically extends TMF class. Valued\
231 \ with 'ONAPservice'. We used this features to add following attribute:\
235 description: "Not managed in Beijing release"
238 description: "Additional attribute (not in the TMF API) - extended through\
239 \ @referredType - model-invariant-id"
241 ServiceCharacteristic:
242 description: "A list of name value pairs that define the service characteristics\n\
243 Not managed in Beijing release."
249 description: "Name of the characteristic\nNot managed in Beijing release."
252 description: "Type of value for this characteristic.\nNot managed in Beijing\
256 $ref: "#/definitions/Value"
258 description: "Supporting resource - A supportingResource will be retrieved for\
259 \ each relationship of the relationship-list where related-link describe a vnf"
263 description: "Unique identifier of the supporting resource - Valued to vnf-id"
266 description: "Reference of the supporting resource"
269 description: "Not managed in Beijing release."
272 description: "Name of the supporting resource - Valued with vnf_-name"
275 description: "This attribute allows to dynamically extends TMF class. Valued\
276 \ with 'ONAP resource'. We used this features to add following attributes:\n\
277 \ status\t\n modelInvariantId\n modelVersionId\n modelCustomisationId"
280 description: "Not managed in Beijing release."
283 description: "Additional attribute (not in the TMF API) - extended through\
284 \ @referredType - valued with prov-status"
287 description: "Additional attribute (not in the TMF API) - extended through\
288 \ @referredType - valued with model-invariant-id"
291 description: "Additional attribute (not in the TMF API) - extended through\
292 \ @referredType - valued with model-verson-id"
294 modelCustomisationId:
295 description: "Additional attribute (not in the TMF API) - extended through\
296 \ @referredType - valued with model-customisation-id"
299 description: "RelatedParty reference. A related party defines party or party role\
300 \ linked to a specific entity."
304 description: "Unique identifier of a related party"
307 description: "Reference of a related party.\nNot filled in Beijing release."
310 description: "Role played by the related party.\nFilled with 'ONAPcustomer'"
313 description: "Not managed in the Beijing release."
316 description: "Structure used to describe characteristic value.\nNot managed in\
321 description: "Not managed in Beijing release."
324 description: "Not managed in Beijing release."
326 serviceCharacteristicValue:
327 description: "Not managed in Beijing release."
330 description: "This class is used to structure list of service(s) retrieved"
334 description: "Unique identifier of a related party"
337 description: "Role played by the related party - only role “ONAPcustomer”\
338 \ is managed in Beijing release."
340 ListServiceSpecificationRef:
341 description: "This class is used to structure list of service(s) retrieved"
345 description: "Unique identifier of the service specification"
348 description: "Name of the required service specification"
351 description: "This class is used to structure list of service(s) retrieved"
355 description: "Unique identifier of the service"
358 description: "Name of the service"
360 serviceSpecification:
361 $ref: "#/definitions/ListServiceSpecificationRef"
363 $ref: "#/definitions/ListRelatedPartyRef"
364 ServiceInventoryEvent:
365 description: "Structure for a service inventory event notification"
376 description: "The Service Instance Id"
379 description: "A reference to the service inventory"
382 description: "The name of the Service Instance"
385 description: "The type of event, service-instance"
388 description: "The state of the service instance"
391 $ref: "#/definitions/RelatedPartyRef"
393 description: "Notification structure for a service notification"
409 $ref: "#/definitions/eventType"
411 $ref: "#/definitions/ServiceInventoryEvent"