3 description: "Request the instantiation of a service\n\nA Service Order is a type\
4 \ of order which can be used to describe a group of operations on service – one\
5 \ service order item per service. An action at the level of the service order\
6 \ item describe the operation to be done on a service (add, terminate for example).\
7 \ The service order is triggered from the BSS system in charge of the product\
8 \ order management to ONAP that will manage the service fulfillment.\n\nList of\
9 \ available subscription for serviceOrdering notifications, see /hub resources\
10 \ for more information:\n\n- ServiceOrderCreationNotification\n- ServiceOrderStateChangeNotification\n\
11 - ServiceOrderItemStateChangeNotification\n\n"
13 title: "API ServiceOrder"
15 url: "/redoc/logo.png"
16 backgroundColor: "#FFFFFF"
17 host: "localhost:8080"
18 basePath: "/nbi/api/v4"
22 - "application/json;charset=utf-8"
24 - name: "ServiceOrder"
25 description: "provided by NBI"
26 - name: "Notification"
27 description: "provided by subscribers, which MUST registered by creating a hub resource"
34 - "application/json;charset=utf-8"
36 - "application/json;charset=utf-8"
37 operationId: "serviceOrderCreate"
38 summary: "Create a service order"
39 description: "This operation creates a service order entity.\nThe TMF Open API\
40 \ specification document provides the list of mandatory and non mandatory\
41 \ attributes when creating a ServiceOrder, including any possible rule conditions\
42 \ and applicable default values.\nPOST should be used without specifying the\
43 \ id and the href, the Service Order Management system is in charge of generating\
44 \ the id + href for the ServiceOrder.\n\nIn Beijing Release, NBI will use\
45 \ only POST {{url}}/ecomp/mso/infra/serviceInstances/v4 SO API. This mean\
46 \ that only the 'service-instance' level will be created in AAI. Additional\
47 \ resource like VNF and/OR VF are not created.\n\nIn Casablanca release, NBI\
48 \ has been improved to also be able to use POST {{url}}/e2eServiceInstances/v3\
49 \ SO API. This API is able to instantiate in ONAP E2E service; This is useful\
50 \ for CCVPN and VoLTE UC.\nDepending on the service category defined in SDC,\
51 \ NBI will use one or the other SO API. If category starts with e2e, NBI will\
52 \ use {url}}/e2eServiceInstances/v3 SO API - else it will use {{url}}/ecomp/mso/infra/serviceInstances/v4\
56 - name: "serviceOrder"
61 $ref: "#/definitions/CreateServiceOrder"
69 description: "Created"
71 $ref: "#/definitions/ServiceOrder"
76 - "application/json;charset=utf-8"
77 operationId: "serviceOrderFind"
78 summary: "List service orders"
79 description: "Retrieve and list service order entities according to given criteria.\n\
80 Only a predefined set of attribute is proposed.\nAttribute selection could\
81 \ be described in the fields attribute."
92 description: "state of the order(s) to be retrieved"
99 - name: "orderDate.gt"
102 description: "order date greather than"
104 - name: "orderDate.lt"
107 description: "order date lower than"
112 description: "this attribute could be used to filter retrieved attribute(s)\
118 description: "The index of the first element to retrieve. Zero is the first\
119 \ element of the collection."
125 description: "The maximum number of elements to retrieve (it can be greater\
126 \ than the actual available number of items)."
135 $ref: "#/definitions/ServiceOrder"
150 - "application/json;charset=utf-8"
151 operationId: "serviceOrderGet"
152 summary: "Retrieve a service order"
153 description: "This operation retrieves a service order entity. \nAttribute selection\
154 \ is enabled for all first level attributes."
165 description: "Attribute selection"
176 $ref: "#/definitions/ServiceOrder"
182 - "application/json;charset=utf-8"
184 - "application/json;charset=utf-8"
185 operationId: "notificationCreate"
186 summary: "NBI will send notification to this operation provided by subscribers"
187 description: "Notification structure depends of the eventType:\n\n- ServiceOrderCreationNotification\n\
188 - ServiceOrderStateChangeNotification\n\n```\n{\n \"eventId\": \"string\"\
189 ,\n \"eventDate\": \"2019-03-12T16:21:27.530Z\",\n \"eventType\": \"string\"\
190 ,\n \"event\": {\n \"id\": \"string\",\n \"href\": \"string\",\n \
191 \ \"externalId\": \"string\",\n \"state\": \"acknowledged\",\n \"orderDate\"\
192 : \"2019-03-12T16:21:27.530Z\",\n \"completionDateTime\": \"2019-03-12T16:21:27.530Z\"\
193 \n }\n}\n```\n\n- ServiceOrderItemStateChangeNotification\n\n```\n{\n \"\
194 eventId\": \"string\",\n \"eventDate\": \"2019-03-12T16:21:44.066Z\",\n \
195 \ \"eventType\": \"string\",\n \"event\": {\n \"id\": \"string\",\n \
196 \ \"href\": \"string\",\n \"externalId\": \"string\",\n \"state\":\
197 \ \"acknowledged\",\n \"orderDate\": \"2019-03-12T16:21:44.066Z\",\n \
198 \ \"completionDateTime\": \"2019-03-12T16:21:44.066Z\",\n \"orderItem\"\
199 : [\n {\n \"id\": \"string\",\n \"action\": \"add\",\n\
200 \ \"state\": \"acknowledged\",\n \"service\": {\n \"\
201 id\": \"string\",\n \"href\": \"string\",\n \"name\": \"\
202 string\",\n \"serviceState\": \"string\",\n \"serviceCharacteristic\"\
203 : [\n {\n \"name\": \"string\",\n \"\
204 valueType\": \"string\",\n \"value\": {\n \"serviceCharacteristicValue\"\
205 : \"string\"\n }\n }\n ],\n \"serviceRelationship\"\
206 : [\n {\n \"type\": \"reliesOn\"\n }\n\
207 \ ],\n \"relatedParty\": [\n {\n \
208 \ \"id\": \"string\",\n \"href\": \"string\",\n \
209 \ \"role\": \"string\",\n \"name\": \"string\",\n \
210 \ \"@referredType\": \"string\"\n }\n ],\n \
211 \ \"serviceSpecification\": {\n \"id\": \"string\",\n \
212 \ \"href\": \"string\",\n \"name\": \"string\",\n \
213 \ \"version\": \"string\",\n }\n }\n }\n ]\n }\n\
217 - name: "Notification"
222 $ref: "#/definitions/Notification"
230 description: "Created"
232 $ref: "#/definitions/Notification"
235 description: "Action type to be describer on the order item.\nmodify is not managed\
236 \ in Beijing release"
244 description: "List of possible state for the order and the orderItem."
257 description: "Relationship type;\nOnly reliesOn is managed in Beijing release."
265 - "ServiceOrderCreationNotification"
266 - "ServiceOrderStateChangeNotification"
267 - "ServiceOrderItemStateChangeNotification"
282 description: "Application related code (as defined in the API or from a common\
287 description: "Text that explains the reason for error. This can be shown to\
291 description: "Text that provide more details and corrective actions related\
292 \ to the error. This can be shown to a client user"
295 description: "http error code extension like 400-2"
298 description: "url pointing to documentation describing the error"
301 description: "Linked Services to the one instantiate\nnbi component used this\
302 \ relationship to sort request to ONAP."
309 $ref: "#/definitions/RelationshipType"
311 $ref: "#/definitions/Service"
313 description: "Service references"
319 description: "Unique identifier of the service"
322 description: "Reference of the service"
324 ServiceCharacteristic:
325 description: "ServiceCharacteristic"
331 description: "Name of characteristic"
337 $ref: "#/definitions/Value"
339 description: "A related party defines party which are involved in this order and\
340 \ the role they are playing.\nfor Beijing release:\nWith the current version\
341 \ of APIs used from SO and AAI we need to manage a ‘customer’. This customer\
342 \ concept is confusing with Customer BSS concept. We took the following rules\
343 \ to manage the ‘customer’ information:\no\tIt could be provided through a serviceOrder\
344 \ in the service Order a relatedParty with role ‘ONAPcustomer’ should be provided\
345 \ in the serviceOrder header (we will not consider in this release the party\
346 \ at item level); External API component will check if this customer exists\
347 \ and create it in AAI if not.\no\tIf no relatedParty are provided the service\
348 \ will be affected to ‘generic’ customer (dummy customer) – we assume this ‘\
349 generic’ customer always exists."
356 description: "Unique identifier of a related party"
359 description: "An hyperlink to the party - not used in Beijnig release"
362 description: "The role of the related party (e.g. Owner, requester, fullfiller\
363 \ etc).\nONLY 'ONAPcustomer' is considered"
366 description: "Name of the related party"
371 ServiceSpecificationRef:
372 description: "The service specification (these attributes are fetched from the\
379 description: "Unique identifier of the service specification\nThis information\
380 \ will be used to retrieve SDC information + mapped to SO ModelNameVersionIdin\
384 description: "Reference of the service specification\nNot used in Beijing\
388 description: "Name of the service specification\nNot used in Beijing release"
391 description: "Version of the service Specification\nNot used in Beijing release"
394 $ref: "#/definitions/TargetServiceSchema"
396 description: "Not used in Beijing release"
399 description: "Not used in Beijing release"
402 description: "Not used in Beijing release"
405 description: "Service (to be added, modified, deleted) description"
411 description: "Identifier of a service instance.\nIt must be valued if orderItem\
412 \ action is 'delete' and corresponds to a AAI service.id"
415 description: "Reference to the Service (useful for delete or modify command).\n\
416 Not managed in Beijing release."
419 description: "Name of the service - When orderItem action is 'add' this name\
420 \ will be used in ONAP/SO request as InstaceName."
423 description: "The lifecycle state of the service requested;\nNot managed in\
427 description: "To define the service type\nNot managed in Beijing Release"
430 description: "The URL to get the resource schema.\nNot managed in Beijing\
433 serviceCharacteristic:
436 $ref: "#/definitions/ServiceCharacteristic"
440 $ref: "#/definitions/ServiceRelationship"
444 $ref: "#/definitions/RelatedParty"
445 serviceSpecification:
446 $ref: "#/definitions/ServiceSpecificationRef"
447 OrderItemRelationship:
448 description: "Linked order item to the one containing this attribute.\nnbi component\
449 \ used this relationship to sort request to ONAP."
456 $ref: "#/definitions/RelationshipType"
458 description: "Unique identifier of an order item"
461 description: "An identified part of the order. A service order is decomposed into\
462 \ one or more order items."
469 description: "Identifier of the line item (generally it is a sequence number\
473 $ref: "#/definitions/ActionType"
475 $ref: "#/definitions/StateType"
477 description: "Progress of the delivery in percentage."
480 description: "Used to extend the order item.\nnot used in Beijing relase"
483 description: "not used in Beijing relase"
486 description: "not used in Beijing relase"
488 orderItemRelationship:
491 $ref: "#/definitions/OrderItemRelationship"
493 $ref: "#/definitions/Service"
497 $ref: "#/definitions/OrderMessage"
499 description: "A Service Order is a type of order which can be used to place an\
500 \ order between a customer and a service provider or between a service provider\
501 \ and a partner and vice versa"
507 description: "ID created on repository side"
510 description: "Hyperlink to access the order"
513 description: "ID given by the consumer and only understandable by him (to\
514 \ facilitate his searches)"
517 description: "A way that can be used by consumers to prioritize orders in\
518 \ Service Order Management system (from 0 to 4 : 0 is the highest priority,\
522 description: "A free-text description of the service order"
525 description: "Used to categorize the order that can be useful for the OM system\
526 \ (e.g. “broadband”, “TVOption”, ...)"
529 $ref: "#/definitions/StateType"
535 description: "Date when the order was completed"
539 description: "Order start date wished by the requestor"
542 requestedCompletionDate:
543 description: "Requested delivery date from the requestor perspective"
546 expectedCompletionDate:
551 description: "Date when the order was started for processing"
566 $ref: "#/definitions/RelatedParty"
570 $ref: "#/definitions/OrderRelationship"
574 $ref: "#/definitions/ServiceOrderItem"
578 $ref: "#/definitions/OrderMessage"
580 description: "Linked order to the one containing this attribute.\nThis relationship\
581 \ is not used to sort ONAP request."
587 description: "The type of related order, can be : “dependency” if the order\
588 \ needs to be “not started” until another order item is complete (a service\
589 \ order in this case) or “cross-ref” to keep track of the source order (a\
593 description: "The id of the related order"
596 description: "A hyperlink to the related order"
599 description: "Type of the referred order."
602 description: "Target to the schema describing the service spec resource"
609 description: "Indicates the (class) type of resource."
612 description: "This field provided a link to the schema describing this REST\
616 description: "Value is a descriptive structure for service characteristic"
619 serviceCharacteristicValue:
620 description: "Value of the characteristic."
622 CreateServiceOrderItem:
623 description: "This structure is used in the operation POST for a serviceOrder\
624 \ request to describe an item.\nAttribute description is not accurate and should\
625 \ be find in the serviceOrderItem class."
632 description: "Identifier of the line item (generally it is a sequence number\
636 $ref: "#/definitions/ActionType"
637 orderItemRelationship:
640 $ref: "#/definitions/OrderItemRelationship"
642 $ref: "#/definitions/Service"
644 description: "This structure is used in the operation POST for a serviceOrder\
645 \ request.\nAttribute description is not accurate and should be find in the\
646 \ serviceOrder class."
650 description: "ID given by the consumer and only understandable by him (to\
651 \ facilitate his searches)"
654 description: "A way that can be used by consumers to prioritize orders in\
655 \ Service Order Management system (from 0 to 4 : 0 is the highest priority,\
659 description: "A free-text description of the service order"
662 description: "Used to categorize the order that can be useful for the OM system\
663 \ (e.g. “broadband”, “TVOption”, ...)"
666 description: "Order start date wished by the requestor"
669 requestedCompletionDate:
670 description: "Requested delivery date from the requestor perspective"
676 $ref: "#/definitions/RelatedParty"
680 $ref: "#/definitions/OrderRelationship"
684 $ref: "#/definitions/CreateServiceOrderItem"
686 description: "This structure is used to provide a subset of serviceOrder attributes\
687 \ to be provided in particular for notification messages"
693 description: "ID created on repository side"
696 description: "Hyperlink to access the order"
699 description: "ID given by the consumer and only understandable by him (to\
700 \ facilitate his searches)"
703 $ref: "#/definitions/StateType"
709 description: "Date when the order was completed"
713 description: "Notification structure for a serviceOrdering notification"
729 $ref: "#/definitions/EventType"
731 $ref: "#/definitions/ServiceOrderSummaryWithItem"
732 ServiceOrderItemSummary:
733 description: "Service Order item summary to be used for notification"
740 description: "Identifier of the line item (generally it is a sequence number\
744 $ref: "#/definitions/ActionType"
746 $ref: "#/definitions/StateType"
748 $ref: "#/definitions/Service"
749 ServiceOrderSummaryWithItem:
750 description: "Service order item summary with item description"
756 description: "ID created on repository side"
759 description: "Hyperlink to access the order"
762 description: "ID given by the consumer and only understandable by him (to\
763 \ facilitate his searches)"
766 $ref: "#/definitions/StateType"
772 description: "Date when the order was completed"
778 $ref: "#/definitions/ServiceOrderItemSummary"
780 description: "An optional array of messages associated with the Order"
783 - "correctionRequired"
787 description: "A code associated to this message"
790 description: "Service Order attribute related to this error message"
793 description: "Message related to this order"
796 $ref: "#/definitions/SeverityMessage"
798 description: "Indicator that an action is required to allow service order\
799 \ fullfilment to follow up"