VNFIndicatorNotification.yaml 5.56 KB
Newer Older
1
openapi: 3.0.2
Gergely Csatari's avatar
Gergely Csatari committed
2
3

info:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
4
  title: SOL003 - VNF Indicator Notification interface
5
  description: |
Francesca Moscatelli's avatar
Francesca Moscatelli committed
6
    SOL003 - VNF Indicator Notification interface
7

8
    IMPORTANT: Please note that this file might be not aligned to the current
9
10
11
    version of the ETSI Group Specification it refers to. In case of
    discrepancies the published ETSI Group Specification takes precedence.

12
    Please report bugs to https://forge.etsi.org/rep/nfv/SOL002-SOL003/issues
13
14
  contact:
    name: NFV-SOL WG
Gergely Csatari's avatar
Gergely Csatari committed
15
  license:
16
    name: ETSI Forge copyright notice
Gergely Csatari's avatar
Gergely Csatari committed
17
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
Giacomo Bernini's avatar
Giacomo Bernini committed
18
  version: "1.3.1-impl:etsi.org:ETSI_NFV_OpenAPI:1"
19
20

externalDocs:
21
22
  description: ETSI GS NFV-SOL 003 V3.5.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/03.05.01_60/gs_NFV-SOL003v030501p.pdf
Gergely Csatari's avatar
Gergely Csatari committed
23

24
25
26
servers:
  - url: http://127.0.0.1/callback/v1
  - url: https://127.0.0.1/callback/v1
Gergely Csatari's avatar
Gergely Csatari committed
27
28

paths:
29
30
31
  ###############################################################################
  # Notification endpoint VnfIndicatorValueChangeNotification                   #
  ###############################################################################
32
  /URI_is_provided_by_the_client_when_creating_the_subscription-VnfIndicatorValueChangeNotification:
Gergely Csatari's avatar
Gergely Csatari committed
33
34
    #SOL003 location: 8.4.7
    post:
35
      description: |
36
37
        The POST method delivers a notification from the API producer to an API consumer. The API consumer shall
        have previously created an "Individual subscription" resource with a matching filter. See clause 8.4.7.3.1.
Gergely Csatari's avatar
Gergely Csatari committed
38
      parameters:
39
40
41
42
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      requestBody:
        $ref: '#/components/requestBodies/AlarmListRebuiltNotification'
Gergely Csatari's avatar
Gergely Csatari committed
43
44
      responses:
        204:
45
          $ref: '#/components/responses/VNFINDNotification.Post.204'
Gergely Csatari's avatar
Gergely Csatari committed
46
        400:
47
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
Gergely Csatari's avatar
Gergely Csatari committed
48
        401:
49
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
Gergely Csatari's avatar
Gergely Csatari committed
50
        403:
51
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
Gergely Csatari's avatar
Gergely Csatari committed
52
        405:
53
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
Gergely Csatari's avatar
Gergely Csatari committed
54
        406:
55
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
Gergely Csatari's avatar
Gergely Csatari committed
56
        500:
57
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
Gergely Csatari's avatar
Gergely Csatari committed
58
        503:
59
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
60

Gergely Csatari's avatar
Gergely Csatari committed
61
    get:
62
      description: |
63
64
        The GET method allows the API producer to test the notification endpoint that is provided by the API consumer,
        e.g. during subscription. See clause 8.4.7.3.2.
Gergely Csatari's avatar
Gergely Csatari committed
65
      parameters:
66
67
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
Gergely Csatari's avatar
Gergely Csatari committed
68
69
      responses:
        204:
70
          $ref: '#/components/responses/VNFINDNotification.Get.204'
Gergely Csatari's avatar
Gergely Csatari committed
71
        400:
72
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
Gergely Csatari's avatar
Gergely Csatari committed
73
        401:
74
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
Gergely Csatari's avatar
Gergely Csatari committed
75
        403:
76
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
Gergely Csatari's avatar
Gergely Csatari committed
77
        405:
78
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
Gergely Csatari's avatar
Gergely Csatari committed
79
        406:
80
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
Gergely Csatari's avatar
Gergely Csatari committed
81
        500:
82
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
Gergely Csatari's avatar
Gergely Csatari committed
83
        503:
84
85
86
87
88
89
90
91
92
93
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503

components:

  requestBodies:
    AlarmListRebuiltNotification: 
      description: Information that the alarm list has been rebuilt by the VNFM.
      content:
        application/json:
          schema:
94
95
96
            oneOf:
              - $ref: ../../definitions/SOL002SOL003VNFIndicator_def.yaml#/definitions/VnfIndicatorValueChangeNotification
              - $ref: ../../definitions/SOL002SOL003VNFIndicator_def.yaml#/definitions/SupportedIndicatorsChangeNotification
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
      required: true
  
  responses:
    VNFINDNotification.Post.204:
      description: |
        204 NO CONTENT

        Shall be returned when the notification has been delivered successfully.
        The response body shall be empty.
      headers:
        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
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string

    VNFINDNotification.Get.204:
      description: |
        204 NO CONTENT
        Shall be returned to indicate that the notification endpoint has been tested successfully.
        The response body shall be empty.
      headers:
        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
        Version:
          description: The used API version.
          style: simple
          explode: false
          schema:
            type: string