$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:
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
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:
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: