Feature 11011: Multiple NS deletion in OSM(SOL005) 98/14398/3
authoradurti <adurti.v@tataelxsi.co.in>
Fri, 31 May 2024 09:22:18 +0000 (14:52 +0530)
committerAdurti <adurti.v@tataelxsi.co.in>
Wed, 17 Jul 2024 07:08:58 +0000 (07:08 +0000)
Change-Id: Ie3a7527f1cfc4e4cd226b89d4152e6c91b54d2d4
Signed-off-by: adurti <adurti.v@tataelxsi.co.in>
osm-openapi.yaml

index b9dc2db..6c1b966 100644 (file)
@@ -2179,6 +2179,49 @@ paths:
           $ref: '#/components/responses/UnexpectedError'
         default:
           $ref: '#/components/responses/UnexpectedError'
+  '/nslcm/v1/ns_instances_terminate':
+    post:
+      tags:
+        - "NS instances"
+      summary: Terminates NS instances
+      description: Terminates multiple NS instances.
+      operationId: MultiNsTerminateRequest
+      requestBody:
+        $ref: '#/components/requestBodies/MultiNsTerminateRequest'
+      responses:
+        '202':
+          description: Accepted
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ObjectIdList'
+            application/yaml:
+              schema:
+                $ref: '#/components/schemas/ObjectIdList'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+        '403':
+          $ref: '#/components/responses/Forbidden'
+        '404':
+          $ref: '#/components/responses/NotFound'
+        '405':
+          $ref: '#/components/responses/MethodNotAllowed'
+        '406':
+          $ref: '#/components/responses/NotAcceptable'
+        '409':
+          $ref: '#/components/responses/Conflict'
+        '422':
+          $ref: '#/components/responses/UnprocessableEntity'
+        '500':
+          $ref: '#/components/responses/InternalServerError'
+        '503':
+          $ref: '#/components/responses/ServiceUnavailable'
+        '5XX':
+          $ref: '#/components/responses/UnexpectedError'
+        default:
+          $ref: '#/components/responses/UnexpectedError'
   '/nslcm/v1/ns_instances_content':
     get:
       tags:
@@ -6787,6 +6830,14 @@ components:
         id:
           type: string
           format: uuid
+    ObjectIdList:
+      type: object
+      properties:
+        ns_ids:
+          type: array
+          items:
+            type: string
+            format: uuid
     KeyValuePairs:
       # A free list of key:value pairs
       type: object
@@ -7639,6 +7690,19 @@ components:
       required:
         - updateType
       additionalProperties: false
+    MultiNsTerminateRequest:
+      type: object
+      properties:
+        ns_ids:
+          description: List of Ns instance Ids to be deleted
+          type: array
+          items:
+            type: string
+            format: uuid
+        autoremove:
+          description: remove network service if termination end without error
+          type: boolean
+      additionalProperties: false
     # CreateNSinstanceContentRequest:
       # Substituted by InstantiateNsRequest
     CreateNSinstanceContentResponse:
@@ -9644,6 +9708,14 @@ components:
         application/yaml:
           schema:
             $ref: '#/components/schemas/UpdateNsRequest'
+    MultiNsTerminateRequest:
+      content:
+        application/json:
+          schema:
+            $ref: '#/components/schemas/MultiNsTerminateRequest'
+        application/yaml:
+          schema:
+            $ref: '#/components/schemas/MultiNsTerminateRequest'
     # CreateNSinstanceContentRequest:
       # Substituted by InstantiateNsRequest
     CreateNstInfoRequest: