VNFLifecycleManagementNotification.yaml 10.9 KB
Newer Older
1
openapi: 3.0.2
2
3
4

info:
  title: SOL002 - VNF Lifecycle Management Notification interface
5
  description: |
6
    SOL002 - VNF Lifecycle Management Notification interface
7
8
9
    IMPORTANT: Please note that this file might be not aligned to the current version of the ETSI Group Specification
    it refers to and has not been approved by the ETSI NFV ISG. In case of discrepancies the published ETSI Group
    Specification takes precedence.
10
    Please report bugs to https://forge.etsi.org/rep/nfv/SOL002-SOL003/issues
11
12
  contact:
    name: NFV-SOL WG
13
  license:
moscatelli's avatar
moscatelli committed
14
    name: ETSI Forge copyright notice
15
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
16
  version: 2.0.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
17
18

externalDocs:
Sana Zulfiqar's avatar
Sana Zulfiqar committed
19
20
  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
21

22
servers:
Giacomo Bernini's avatar
Giacomo Bernini committed
23
24
  - url: http://127.0.0.1/callback/v2
  - url: https://127.0.0.1/callback/v2
25
26

paths:
27
  /URI_is_provided_by_the_client_when_creating_the_subscription-VnfLcmOperationOccurrenceNotification:
28
    parameters:
29
30
31
32
33
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
    get:
      description: |
        The GET method allows the server to test the notification endpoint that is provided by the API consumer,
Sana Zulfiqar's avatar
Sana Zulfiqar committed
34
        e.g. during subscription. See clause 5.4.20.3.2.
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
      responses:
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Get'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503

53
    post:
54
      description: |
55
        The POST method delivers a notification from the API producer to an API consumer. The API consumer shall have
Sana Zulfiqar's avatar
Sana Zulfiqar committed
56
        previously created an "Individual subscription" resource with a matching filter. See clause 5.4.20.3.1.
57
      parameters:
58
59
60
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      requestBody:
        $ref: '#/components/requestBodies/VnfLcmOperationOccurrenceNotification'
61
      responses:
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Post'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
78

79
  /URI_is_provided_by_the_client_when_creating_the_subscription-VnfIdentifierCreationNotification:
80
81
82
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
83
    get:
84
85
      description: |
        The GET method allows the server to test the notification endpoint that is provided by the API consumer,
Sana Zulfiqar's avatar
Sana Zulfiqar committed
86
        e.g. during subscription. See clause 5.4.20.3.2.
87
      responses:
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Get'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
104
105

    post:
106
      description: |
107
        The POST method delivers a notification from the API producer to an API consumer. The API consumer shall have
Sana Zulfiqar's avatar
Sana Zulfiqar committed
108
        previously created an "Individual subscription" resource with a matching filter. See clause 5.4.20.3.1.
109
      parameters:
110
111
112
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      requestBody:
        $ref: '#/components/requestBodies/VnfIdentifierCreationNotification'
113
      responses:
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Post'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
130

131
  /URI_is_provided_by_the_client_when_creating_the_subscription-VnfIdentifierDeletionNotification:
132
133
134
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
135
    get:
136
137
      description: |
        The GET method allows the server to test the notification endpoint that is provided by the API consumer,
Sana Zulfiqar's avatar
Sana Zulfiqar committed
138
        e.g. during subscription. See clause 5.4.20.3.2.
139
      responses:
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Get'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
156
157

    post:
158
      description: |
159
        The POST method delivers a notification from the API producer to an API consumer. The API consumer shall have
Sana Zulfiqar's avatar
Sana Zulfiqar committed
160
        previously created an "Individual subscription" resource with a matching filter. See clause 5.4.20.3.1.
161
      parameters:
162
163
164
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      requestBody:
        $ref: '#/components/requestBodies/VnfIdentifierDeletionNotification'
165
      responses:
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
        "204":
          $ref: '#/components/responses/VNFLCMNotification.Post'
        "400":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
        "401":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
        "403":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
        "405":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
        "406":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
        "500":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
        "503":
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
182

183
184
185
186
187
188
189
190
191
192
components:
  requestBodies:
    VnfLcmOperationOccurrenceNotification:
      description: |
        A notification about lifecycle changes triggered by a VNF LCM operation occurrence.
      content:
        application/json:
          schema:
            $ref: ./definitions/SOL002VNFLifecycleManagementNotification_def.yaml#/definitions/VnfLcmOperationOccurrenceNotification
      required: true
193

194
195
196
197
198
199
200
201
    VnfIdentifierCreationNotification:
      description: |
        A notification about lifecycle changes triggered by a VNF LCM operation occurrence.
      content:
        application/json:
          schema:
            $ref: ../../definitions/SOL002SOL003VNFLifecycleManagement_def.yaml#/definitions/VnfIdentifierCreationNotification
      required: true
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
    VnfIdentifierDeletionNotification:
      description: |
        A notification about the deletion of a VNF identifier and the related "Individual VNF instance" resource.
      content:
        application/json:
          schema:
            $ref: ../../definitions/SOL002SOL003VNFLifecycleManagement_def.yaml#/definitions/VnfIdentifierDeletionNotification
      required: true

  responses:
    VNFLCMNotification.Get:
      description: |
        201 NO CONTENT
        Shall be returned to indicate the notification endpoint has been  tested successfully. The response body
        shall be empty.
      headers:
        Version:
          description: |
            Version of the API used in the response.
          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: {}

    VNFLCMNotification.Post:
      description: |
        204 NO CONTENT
        Shall be returned when the notification has been delivered successfully. The response body shall be empty.
      headers:
        Version:
          description: |
            Version of the API used in the response.
          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: {}