VNFPackageManagementNotification.yaml 10.6 KB
Newer Older
1
openapi: 3.0.2
2
3

info:
4
  title: SOL003 - VNF Package Management Notification interface
5
  description: |
6
7
    SOL003 - VNF Package Management Notification interface

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
15
  license:
16
    name: ETSI Forge copyright notice
17
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
18
  version: 2.1.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
19
20

externalDocs:
21
22
  description: ETSI GS NFV-SOL 002 V3.3.1
  url: https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.07.01_60/gs_nfv-sol002v020701p.pdf
23

24
25
26
servers:
  - url: http://127.0.0.1/callback/v2
  - url: https://127.0.0.1/callback/v2
27
28

paths:
29
30
31
  ###############################################################################
  # Notification endpoint VnfPackageOnboardingNotification                      #
  ###############################################################################
32
  /URI-is-provided-by-the-client-when-creating-the-subscription-VnfPackageOnboardingNotification:
33
    #SOL003 location: 10.4.9
34
35
36
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
37
    post:
38
      description: |
39
40
41
42
43
        Notify.
        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.
        This method shall follow the provisions specified in the tables 10.4.9.3.1-1 and 10.4.9.3.1-2
        for URI query parameters, request and response data structures, and response codes.
44
      parameters:
45
46
47
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      requestBody:
        $ref: '#/components/requestBodies/VnfPackageOnboardingNotification'
48
49
      responses:
        204:
50
          $ref: '#/components/responses/VnfPackageOnboardingNotification.Post.204'
51
        400:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
52
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/400"
53
        401:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
54
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/401"
55
        403:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
56
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/403"
57
        405:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
58
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/405"
59
        406:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
60
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/406"
61
        500:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
62
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/500"
63
        503:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
64
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/503"
moscatelli's avatar
moscatelli committed
65

66
    get:
67
      description: |
68
69
        The GET method allows the API producer to test the notification endpoint that is provided by 
        the API consumer e.g. during subscription.
70
71
        This method shall follow the provisions specified in the tables 10.4.9.3.2-1 and 10.4.9.3.2-2
        for URI query parameters, request and response data structures, and response codes.
72
73
      responses:
        204:
74
          $ref: '#/components/responses/VnfPackageOnboardingNotification.Get.204'
75
        400:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
76
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/400"
77
        401:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
78
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/401"
79
        403:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
80
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/403"
81
        405:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
82
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/405"
83
        406:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
84
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/406"
85
        500:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
86
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/500"
87
        503:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
88
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/503"
89

90
91
92
  ###############################################################################
  # Notification endpoint VnfPackageChangeNotification                          #
  ###############################################################################
93
  /URI-is-provided-by-the-client-when-creating-the-subscription-VnfPackageChangeNotification:
94
    #SOL003 location: 10.4.9
95
96
97
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
98
    post:
99
      description: |
100
101
102
103
104
        Notify.
        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.
        This method shall follow the provisions specified in the tables 10.4.9.3.1-1 and 10.4.9.3.1-2
        for URI query parameters, request and response data structures, and response codes.
105
      parameters:
106
107
108
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      requestBody:
        $ref: '#/components/requestBodies/VnfPackageChangeNotification'
109
110
      responses:
        204:
111
          $ref: '#/components/responses/VnfPackageChangeNotification.Post.204'
112
        400:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
113
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/400"
114
        401:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
115
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/401"
116
        403:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
117
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/403"
118
        405:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
119
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/405"
120
        406:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
121
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/406"
122
        500:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
123
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/500"
124
        503:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
125
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/503"
moscatelli's avatar
moscatelli committed
126

127
    get:
128
      description: |
129
130
        The GET method allows the API producer to test the notification endpoint that is provided by 
        the API consumer e.g. during subscription.
131
132
        This method shall follow the provisions specified in the tables 10.4.9.3.2-1 and 10.4.9.3.2-2
        for URI query parameters, request and response data structures, and response codes.
133
134
      responses:
        204:
135
          $ref: '#/components/responses/VnfPackageChangeNotification.Get.204'
136
        400:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
137
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/400"
138
        401:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
139
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/401"
140
        403:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
141
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/403"
142
        405:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
143
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/405"
144
        406:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
145
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/406"
146
        500:
Francesca Moscatelli's avatar
Francesca Moscatelli committed
147
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/500"
148
        503:
149
150
151
152
153
154
155
156
157
158
          $ref: "../../responses/SOL002SOL003_resp.yaml#/components/responses/503"

components:
  requestBodies:

    VnfPackageOnboardingNotification:
      description: A notification about on-boarding of a VNF package.
      content:
        application/json:
          schema:
159
            $ref: "definitions/SOL003VNFPackageManagementNotification_def.yaml#/definitions/VnfPackageOnboardingNotification"
160
161
162
163
164
165
166
167
      required: true

    VnfPackageChangeNotification:
      description: |
        A notification about changes of status in a VNF package.=
      content:
        application/json:
          schema:
168
            $ref: "definitions/SOL003VNFPackageManagementNotification_def.yaml#/definitions/VnfPackageChangeNotification"
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
      required: true

  responses:
  
    VnfPackageOnboardingNotification.Post.204:
      description: |
        204 NO CONTENT

        Shall be returned when the notification has been delivered successfully.
      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: |
            Version of the API used in the response.
          style: simple
          explode: false
          schema:
            type: string

    VnfPackageOnboardingNotification.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: |
            Version of the API used in the response.
          style: simple
          explode: false
          schema:
            type: string

    VnfPackageChangeNotification.Post.204:
      description: |
        204 NO CONTENT

        Shall be returned when the notification has been delivered successfully.
      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: |
            Version of the API used in the response.
          style: simple
          explode: false
          schema:
            type: string

    VnfPackageChangeNotification.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: |
            Version of the API used in the response.
          style: simple
          explode: false
          schema:
            type: string