VNFSnapshotPackageManagement.yaml 23.1 KB
Newer Older
1
2
3
4
5
openapi: 3.0.2

info:
  title: SOL003 - VNF Snapshot Package Management interface
  description: |
Francesca Moscatelli's avatar
Francesca Moscatelli committed
6
7
8
    SOL003 - VNF Snapshot Package Management interface

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

12
    Please report bugs to https://forge.etsi.org/rep/nfv/SOL002-SOL003/issues
13

14
15
16
17
18
  contact:
    name: NFV-SOL WG
  license:
    name: ETSI Forge copyright notice
    url: https://forge.etsi.org/etsi-forge-copyright-notice.txt
19
  version: 1.1.0-impl:etsi.org:ETSI_NFV_OpenAPI:1
20
21

externalDocs:
22
23
  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
24
25

servers:
26
27
  - url: http://127.0.0.1/vnfsnapshotpkgm/v1
  - url: https://127.0.0.1/vnfsnapshotpkgm/v1
28
29
30
31
32
33
34
35
36
37
38
39
40
41

paths:
  ###############################################################################
  # API Versions                                                                #
  ###############################################################################
  /api_versions:
    $ref: '../../endpoints/SOL002SOL003_endpoints.yaml#/endpoints/api-versions' 

  /vnf_snapshot_packages:
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
    get:
      description: |
42
        The GET method queries the information of the VNF packages matching the filter. See clause 12.4.2.3.2.
43
44
45
46
47
48
      parameters:
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/filter
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/nextpage_opaque_marker
      responses:
49
        200:
50
          $ref: '#/components/responses/VNFSnapshotPackages.Get.200'
51
        400:
52
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
53
        401:
54
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
55
        403:
56
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
57
        404:
58
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
59
        405:
60
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
61
        406:
62
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
63
        416:
64
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/416
65
        422:
66
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
67
        429:
68
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
69
        500:
70
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
71
        503:
72
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
73
        504:
74
75
76
77
78
79
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504

  /vnf_snapshot_packages/{vnfSnapshotPkgId}:
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
80
      - $ref: '#/components/parameters/VnfSnapshotPkgId'
81
82
    get:
      description: |
83
        The GET method reads the information of an individual VNF snapshot package. See clause 12.4.3.3.2
84
85
86
87
88
89
      parameters:
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/filter
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/nextpage_opaque_marker
      responses:
90
        200:
91
          $ref: '#/components/responses/IndividualVNFSnapshotPackages.Get.200'
92
        400:
93
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
94
        401:
95
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
96
        403:
97
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
98
        404:
99
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
100
        405:
101
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
102
        406:
103
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
104
        416:
105
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/416
106
        422:
107
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
108
        429:
109
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
110
        500:
111
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
112
        503:
113
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
114
        504:
115
116
117
118
119
120
121
122
123
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504

  /vnf_snapshot_packages/{vnfSnapshotPkgId}/package_content:
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
      - $ref: '#/components/parameters/VnfSnapshotPkgId'
    get:
      description: |
124
        The GET method fetches the content of a VNF snapshot package. See clause 12.4.4.3.2.
125
126
127
128
      parameters:
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      responses:
129
        200:
130
          $ref: '#/components/responses/PackageContent.Get.200'
131
        206:
132
          $ref: '#/components/responses/PackageContent.Get.206'
133
        400:
134
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
135
        401:
136
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
137
        403:
138
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
139
        404:
140
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
141
        405:
142
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
143
        406:
144
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
145
        409:
146
          $ref: '#/components/responses/PackageContent.Get.409'
147
        416:
148
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/416
149
        422:
150
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
151
        429:
152
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
153
        500:
154
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
155
        503:
156
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
157
        504:
158
159
160
161
162
163
164
165
166
167
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504
      
  /vnf_snapshot_packages/{vnfSnapshotPkgId}/artifacts/{artifactPath}:
    parameters:
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Version
      - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Authorization
      - $ref: '#/components/parameters/VnfSnapshotPkgId'
      - $ref: '#/components/parameters/ArtifactPath'
    get:
      description: |
168
        The GET method fetches the content of an artifact within the VNF snapshot package. See clause 12.4.5.3.2.
169
170
171
172
      parameters:
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/Accept
        - $ref: ../../components/SOL002SOL003_params.yaml#/components/parameters/ContentType
      responses:
173
        200:
174
          $ref: '#/components/responses/IndividualArtifact.Get.200'
175
        206:
176
          $ref: '#/components/responses/IndividualArtifact.Get.206'
177
        400:
178
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/400
179
        401:
180
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/401
181
        403:
182
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/403
183
        404:
184
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/404
185
        405:
186
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/405
187
        406:
188
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/406
189
        409:
190
          $ref: '#/components/responses/IndividualArtifact.Get.409'
191
        416:
192
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/416
193
        422:
194
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/422
195
        429:
196
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/429
197
        500:
198
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/500
199
        503:
200
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/503
201
        504:
202
          $ref: ../../responses/SOL002SOL003_resp.yaml#/components/responses/504
203

204
205
206
components:
  parameters:
    VnfSnapshotPkgId:
207
208
209
210
211
212
213
214
215
216
217
218
      name: vnfSnapshotPkgId
      in: path
      description: |
        Identifier of the VNF snapshot package. The identifier is allocated by the NFVO.
        This identifier can be retrieved from the "id" attribute of the applicable "VnfSnapshotPkgInfo" in the body of
        the response to requesting the creation of a new "Individual VNF snapshot package" resource or in a response to 
        a GET request querying the "Individual VNF snapshot package" or the "VNF snapshot packages" resource.
      required: true
      style: simple
      explode: false
      schema:
        type: string
219
220

    ArtifactPath:
221
222
223
224
225
226
      name: artifactPath
      in: path
      description: |
        For an artifact contained as a file in the VNF snapshot package, this variable shall contain a sequence 
        of one or path segments representing the path of the artifact within the VNF snapshot package, relative 
        to the root of the package.
227

228
        EXAMPLE: foo/bar/m%40ster.sh
229

230
        For an external artifact represented as a URI in the VNF snapshot package manifest, this variable shall 
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
        contain a sequence of one or more path segments as synthesized by the NFVO (see clause 12.5.3.3) representing 
        this artifact.

        This identifier can be retrieved from the "artifactPath" attribute of the applicable "additionalArtifacts" 
        entry in the body of the response to a GET request querying the "Individual VNF snapshot package" or the 
        "VNF snapshot packages" resource.

        Since multiple path segments are allowed to be contained in this variable, the "/" character that separates
        these segments is not percent-encoded. Each individual segment is percent-encoded if necessary as defined 
        in clause 4.1 of ETSI GS NFV-SOL 013.
      required: true
      style: simple
      explode: false
      schema:
        type: string
246
247
248

  responses:
    VNFSnapshotPackages.Get.200:
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
      description: |
        200 OK

        Shall be returned when information about zero or more VNF snapshot packages has been queried successfully.
        
        The response body shall contain in an array the VNF snapshot package info representations that match the 
        attribute filter, i.e. zero or more VNF snapshot package info representations as defined in clause 12.5.2.2.
        
        If the "filter" URI parameter or one of the "all_fields", "fields", "exclude_fields" or "exclude_default" 
        URI parameters was supplied in the request and is supported, the data in the response body shall have been 
        transformed according to the rules specified in clauses 5.2.2 and 5.3.2 of ETSI GS NFV-SOL 013, respectively.

        If the NFVO supports alternative 2 (paging) according to clause 5.4.2.1 of ETSI GS NFV-SOL 013 for this 
        resource, inclusion of the Link HTTP header in this response shall follow the provisions in clause 5.4.2.3 
        of ETSI GS NFV-SOL 013.
      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
        Link:
          description: |
            Reference to other resources. Used for paging in the present document, see clause 4.7.2.1.
          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:
            type: array
            items:
297
              $ref: definitions/SOL003VNFSnapshotPackageManagement_def.yaml#/definitions/VnfSnapshotPkgInfo
298
299

    IndividualVNFSnapshotPackages.Get.200:
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
      description: |
        200 OK

        Shall be returned when information of the VNF snapshot package has been read successfully.

        The response body shall contain the VNF snapshot package info representation defined in clause 12.5.2.2.
      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:
330
            $ref: definitions/SOL003VNFSnapshotPackageManagement_def.yaml#/definitions/VnfSnapshotPkgInfo
331
332

    PackageContent.Get.200:
333
334
335
336
337
338
339
340
      description: |
        200 OK

        Shall be returned when the whole content of the VNF snapshot package file has been read successfully.
        
        The response body shall include a copy of the VNF snapshot package file. 
        
        The "Content-Type" HTTP header shall be set according to the type of the file, i.e. to "application/zip" 
341
        for a VNF snapshot package. The VNF snapshot package format is defined in ETSI GS NFV-SOL 010.
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
      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/*:
          schema:
            type: string
            format: binary

369
    PackageContent.Get.206:
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
      description: |
        206 PARTIAL CONTENT

        If the NFVO supports range requests, this response shall be returned when a single consecutive byte range 
        from the content of the VNF snapshot package file has been read successfully according to the request. 
        
        The response body shall contain the requested part of the VNF snapshot package file. The "Content-Range" 
        HTTP header shall be provided according to IETF RFC 7233. The "Content-Type" HTTP header shall be set as 
        defined above for the "200 OK" response.
      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-Range:
          description: >
            The Content-Range response HTTP header indicates where in a full body message a partial message belongs.
          schema:
            type: string
            maximum: 1
            minimum: 1
      content:
        application/*:
          schema:
            type: string
            format: binary
412

413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
    PackageContent.Get.409:
      description: |
        409 CONFLICT

        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 the "state" of the
        VNF snapshot package has a value different from
        "AVAILABLE".
        The response body shall contain a ProblemDetails
        structure, in which the "detail" attribute shall convey
        more information about the error.
      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
        Content-Type:
          description: |
            The MIME type of the body of the response. Reference: IETF RFC 7231
          style: simple
          explode: false
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: "../../definitions/SOL002SOL003_def.yaml#/definitions/ProblemDetails"

453
    IndividualArtifact.Get.200:
454
455
456
457
458
      description: |
        200 OK

        Shall be returned when the whole content of the artifact file has been read successfully.

459
460
        The response body shall include a copy of the artifact file from the VNF snapshot package. 
        The VNF snapshot package format is defined in ETSI GS NFV-SOL 010.
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490

        The "Content-Type" HTTP header shall be set according to the content type of the artifact file. 
        If the content type cannot be determined, the header shall be set to the value "application/octet-stream".        
      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/*:
          schema:
            type: string
            format: binary
    
491
    IndividualArtifact.Get.206:
492
493
494
495
496
      description: |
        2006 PARTIAL CONTENT

        If the NFVO supports range requests, this response shall be returned when a single consecutive byte range 
        from the content of the artifact file has been read successfully according to the request.
497

498
499
        The response body shall contain the requested part of the artifact file from the VNF snapshot package.
        The VNF snapshot package is defined in ETSI GS NFV-SOL 010.
500

501
502
        The "Content-Type" HTTP header shall be set according to the content type of the artifact file. If the 
        content type cannot be determined, the header shall be set to the value "application/octet-stream".
503

504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
        The "Content-Range" HTTP header shall be provided according to IETF RFC 7233.
      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-Range:
          description: >
            The Content-Range response HTTP header indicates where in a full body message a partial message belongs.
          schema:
            type: string
            maximum: 1
            minimum: 1
      content:
        application/*:
          schema:
            type: string
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
            format: binary

    IndividualArtifact.Get.409:
      description: |
        409 CONFLICT

        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 the "state" of the
        VNF snapshot package has a value different from
        "AVAILABLE".
        The response body shall contain a ProblemDetails
        structure, in which the "detail" attribute shall convey
        more information about the error. 
      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
        Content-Type:
          description: |
            The MIME type of the body of the response. Reference: IETF RFC 7231
          style: simple
          explode: false
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: "../../definitions/SOL002SOL003_def.yaml#/definitions/ProblemDetails"