VNFConfiguration.yaml 6.16 KB
Newer Older
info:
moscatelli's avatar
moscatelli committed
  title: SOL002 - VNF Configuration interface
    SOL002 - VNF Configuration Interface

    IMPORTANT: Please note that this file might be not aligned to the current
    version of the ETSI Group Specification it refers to. In case of
    discrepancies the published ETSI Group Specification takes precedence.
    Please report bugs to https://forge.etsi.org/rep/nfv/SOL002-SOL003/issues
  contact:
    name: NFV-SOL WG
moscatelli's avatar
moscatelli committed
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
Giacomo Bernini's avatar
Giacomo Bernini committed
  version: 1.2.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
  description: ETSI GS NFV-SOL 002 V3.5.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/03.05.01_60/gs_NFV-SOL002v030501p.pdf
servers:
  - url: http://127.0.0.1/vnfconfig/v1
  - url: https://127.0.0.1/vnfconfig/v1
    $ref: '../../endpoints/SOL002SOL003_endpoints.yaml#/endpoints/api-versions'
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
Giacomo Bernini's avatar
Giacomo Bernini committed
        The API consumer can use this method to read configuration information about a VNF instance and/or its VNFC instances.
        See clause 9.4.2.3.2.
      responses:
        "200":
          $ref: '#/components/responses/Configuration.Get'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504
    patch:
Giacomo Bernini's avatar
Giacomo Bernini committed
      description: |
        This method sets or modifies a configuration resource. See clause 9.4.2.3.4.
      requestBody:
        $ref: '#/components/requestBodies/ConfigurationRequest'
      responses:
        "200":
          $ref: '#/components/responses/Configuration.Patch'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/412
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/416
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504
components:
  requestBodies:
    ConfigurationRequest:
      description: |
        The parameter for the configuration modification, as defined in clause 9.5.2.2.
      content:
        application/json:
          schema:
            $ref: ./definitions/SOL002VNFConfiguration_def.yaml#/definitions/VnfConfigModifications
      required: true
  responses:
    Configuration.Get:
      description: |
        200 OK
        Shall be returned when configuration information about a VNF instance  has been read successfully. The response
        body shall contain a representation of the configuration resource.
      headers:
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string
        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.
          style: simple
          explode: false
          schema:
            type: string
        Content-Type:
          description: The MIME type of the body of the response.
          style: simple
          explode: false
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: ./definitions/SOL002VNFConfiguration_def.yaml#/definitions/VnfConfiguration

    Configuration.Patch:
      description: |
        200 OK
        Shall be returned when the request has been accepted and completed.  The response body shall contain the
        parameters of the configuration  modification that was applied to the configuration resource.
      headers:
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string
        Content-Type:
          description: The MIME type of the body of the response.
          style: simple
          explode: false
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: ./definitions/SOL002VNFConfiguration_def.yaml#/definitions/VnfConfigModifications