Commit 400f77a9 authored by moscatelli's avatar moscatelli
Browse files

SOL003_45: Responses' codes fixed according to SOL003 and SOL013

parent 82b44ace
Loading
Loading
Loading
Loading
Loading
+49 −7
Original line number Diff line number Diff line
@@ -927,9 +927,7 @@ paths:
        required: true
    post:
      description: >
        Change VNF Flavour


        Change VNF Flavour.
        The POST method changes the deployment flavour of a VNF instance.
      parameters:
        - name: ChangeVnfFlavourRequest
@@ -967,7 +965,35 @@ paths:
          type: string
      responses:
        202:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/202-with-Location"
          description: >
            202 ACCEPTED

            Shall be returned when the request has been accepted for processing.
            The response body shall be empty.
            The HTTP response shall include a "Location" HTTP header that
            contains the URI of the newly-created "VNF LCM operation
            occurrence" resource corresponding to the operation.
          headers:
            Location:
              description: The resource URI of the created VNF instance
              type: string
              format: url
              maximum: 1
              minimum: 1
            WWW-Authenticate:
              description: >
                Challenge if the corresponding HTTP request has not provided
                authorization, or error details if the corresponding HTTP
                request has provided an invalid authorization token.
              type: string
              maximum: 1
              minimum: 0
            Version:
              description: >
                Version of the API used in the response.
              type: string
              maximum: 1
              minimum: 1
        400:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/400"
        401:
@@ -975,17 +1001,33 @@ paths:
        403:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/403"
        404:
          description: >
            Shall be returned upon the following error: The API producer did not find a current representation
            for the target resource or is not willing to disclose that one exists.
            The general cause for this error and its handling is specified in clause 4.3.5.4,6.4 of ETSI GS NFV-SOL 013,
            including rules for the presence of the response body.
            Specifically in case of this task resource, the response code 404 shall also returned if the task
            is not supported for the VNF instance represented by the parent resource, which means that the task resource
            consequently does not exist.
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
        405:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/404"
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/405"
        406:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/406"
        409:
          $ref: "responses/VNFLifecycleManagement_resp.yaml#/responses/409-state-conflict-NOT-INSTANTIATED"
          description: >
            Shall be returned upon the following error: The operation cannot be executed currently,
            due to a conflict with the state of the resource.
            Typically, this is due to the fact that the VNF instance resource is in NOT_INSTANTIATED state,
            that another lifecycle management operation is ongoing, or that a required child attribute of
            the "extensions" attribute has not been set.
            Those attributes are marked as "required" in the VNFD.
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/409"
        500:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/500"
        503:
          $ref: "../../responses/SOL002SOL003_resp.yaml#/responses/503"
          
  ###############################################################################
  # Terminate VNF task                                                         #
  ###############################################################################